#include
void main()
{
char ch;
clrscr();
printf("Enter a charactar");
scanf("%c",&ch);
if(ch>='A'&& ch<='Z' || ch>='a'&& ch<='z') printf("Alphabate"); else if (ch>='0'&&ch<='9')
printf("numeric");
else
printf("special.symbol");
getch();
}
OUTPUT
Enter a character ANAND
Alphabet
No comments:
Post a Comment