#include<stdio.h>
int main()
{
char ch;
printf("Enter the character\n");
scanf("%c",&ch);
if(ch>=65&&ch<=90)
{
printf("Upper case");
}
else if(ch>=97&&ch<=122)
{
printf("lower case ");
}
else if(ch>=48&&ch<=57)
{
printf("Enter character is number");
}
else if(ch==32)
{
printf("Enter character is space");
}
else
{
printf("Special character");
}
}
OUTPUT
Enter the character
5
Enter character is number
Comments
Post a Comment