main()
{
int input_char;
printf("\n Enter character:");
input_char=getchar();
if(input_char==EOF)
{
printf("End of file encountered \n");
}
else if(input_char>='a'&& input_char<='z')
{
printf("Lowercase character\n");
}
else if(input_char>='A'&& input_char<='Z')
{
printf("uppercase character \n");
}
else if(input_char>=0 && input_char<=9)
{
printf("Digit \n");
}
}
No comments:
Post a Comment