#include <iostream>
#include <cctype>
using namespace std;
int main()
{
char ch;
cout<<"Enter a single value : ";
cin>>ch;
if(isalpha(ch))
{
if(isupper(ch))
{
cout<<"Value is upper case (alphabet)!!!";
}
if(islower(ch))
{
cout<<"Value is lower case (alphabet)!!!";
}
}
else if(isdigit(ch))
{
cout<<"Value is numeric!!!";
}
else{
cout<<"Entered value is neither alpha nor numeric!!!";
}
return 0;
}
Cheers