C Programs about Input Is integer , character , capital alphabet etc

Reads a character and check its integer, capital character , symbol etc…

#include< conio.h >
#include< stdio .h >
main()
{
int a;
printf(“\n Press A key “);
scanf(“%c”,&a);
if((a>=48)&&(a<=57))
{
printf(“\nit is integer is %c “,a);
}
else if((a>=65)&&(a<=90))
{
printf(“\nThis is capital character is %c “,a);
}
else if((a>=97)&&(a<=122))
{
printf(“\nThis is small character is %c “,a);
}


else
printf(“\nThis is symbol symbol  %c”,a);
getch();
}


By Geeks Track

Leave an Awesome Comment

comments

No comments.

Leave a Reply