#include<iostream.h>
int main()
{
char ch;
cout<<"\n\t Enter a Character:";
cin>>ch;
if(((ch>='A')&&(ch<='Z')) || ((ch>='a')&&(ch<='z')))
cout<<"\n\t You entered an Alphabet"<<"\n";
else
if(ch>='0' && ch<='9')
cout<<"\n\t You entered a Digit"<<"\n";
else
cout<<"\n\t You entered a Character other than Alphabets and Digits"<<"\n";
return 0;
}
Labels: c language, c plus plus, C programming, C++ Programming, source code