#include <stdio.h>
int main()
{
char ch;
printf("\nEnter the character :");
scanf("%c", &ch);
if((ch>=1&&ch<=47) ||(ch>=58&&ch<=64) ||(ch>=91&&ch<=96) ||ch>122)
{
printf("\nsymbol");
}
else if(ch>=48&&ch<=57)
{
printf("\nDigits");
}
else if(ch>=65&&ch<=90)
{
printf("\nupper case");
}
else if(ch>=97&&ch<=122)
{
printf("\nlower case");
}
return 0;
}
Comments
Post a Comment