##题目描述
我们将字符分为五类:大写字母、小写字母、数字、控制字符、其他字符。
编写程序,从键盘输入一个字符,输出字符所属的类型:大写字母时输出capital letters, 小写字
母时输出small letters,数字是输出figures,其他字符时输出 others。
##输入描述
从键盘输入一个字符
##输出描述
输出字符所属的类型
#include<stdio.h>
int main()
{
char ch;
scanf("%c", &ch);
if(ch >= 48 && ch <= 57)
{
printf( "figures\n");
}
else if(ch >= 65 && ch <= 90)
{
printf("capital letters\n");
}
else if(ch >= 97 && ch <= 122)
{
printf("small letters\n");
}
else
{
printf("others\n");
}
return 0;
}