#include <stdio.h>
#include <string.h>
int main()
{
char c;
scanf("%c", &c);
if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'C'))
printf("This a letter\n");
else if (c >= '0' && c <= '9')
printf("This a digit\n");
else
printf("This a other character\n");
return 0;
}
温馨提示:答案为网友推荐,仅供参考