#include <stdio.h>
int main(void)
{
char ch;
printf( "\nEnter a character : " );
scanf("%c", &ch);
if(ch >= 'A' && ch <= 'Z') /* Capital Letter */
{
printf( "\nCapital Letter" );
}
else if(ch >= 'a' && ch <= 'z') /* Small Letter */
{
printf( "\nSmall Letter" );
}
else if(ch >= '0' && ch <= '9') /* Digit */
{
printf( "\nDigit" );
}
else
{
printf( "\nSpecial Symbol" );
}
return 0;
}
int main(void)
{
char ch;
printf( "\nEnter a character : " );
scanf("%c", &ch);
if(ch >= 'A' && ch <= 'Z') /* Capital Letter */
{
printf( "\nCapital Letter" );
}
else if(ch >= 'a' && ch <= 'z') /* Small Letter */
{
printf( "\nSmall Letter" );
}
else if(ch >= '0' && ch <= '9') /* Digit */
{
printf( "\nDigit" );
}
else
{
printf( "\nSpecial Symbol" );
}
return 0;
}
No comments:
Post a Comment
kiss on google ads if you are anonymous because your ip is trackable.thank you.
......from.admin