#include <stdio.h>
#include <conio.h>
main()
{
char ch;
clrscr();
printf("\n Enter any character ");
scanf("\n %c",&ch);
if(ch>=65&&ch<=90)
{
printf("\n Character entered is Capital letter");
}
else
{
if(ch>=97&&ch<=122)
{
printf("\n Character entered is small letter");
}
else
{
if(ch>=48&&ch<=57)
{
printf("\n character is digit");
}
else
{
printf("Character is special symbols");
}
}
}
return(0);
}
output:-
enter the any character =50
character is digit
enter the character =120
character is small letter