C++ Programming
Q) The following program reads one character from the keyboardand will display the character in uppercase if it is lowercase anddoes the opposite when the character is in uppercase. If thecharacter is a digit, it displays a message with the digit.
// This program reads one character from the keyboard andwill
// convert it to uppercase. If it is lowercase, convert it touppercase.
// If it is a digit display a message with the digit.
#include<iostream>
#include<cctype>
using namespace std;
int main( )
{
char c;
cout << “Enter a character n”;
cin >> c;
if(isalpha(c))
{ //check to see if it is a letter ofalphabet
if(
PayPal Gateway not configured
PayPal Gateway not configured