#include <stdio.h> int main() { char a; scanf("%c",&a); if(a >= 65 && a<= 90) { printf("upper"); } else if(a >= 97 && a <= 122) { printf("lower"); } else if(a >= 48 && a<= 57) { printf("digit"); } else { printf("other"); } return 0; }
标签:字符,提示信息,小写字母,键盘输入,大写字母,&& From: https://www.cnblogs.com/lachesism/p/16732857.html