int ch ; 2j&-3W$^
ch=getche() ; L!s/0kBg
if((ch>='a') && (ch<='z')) s1.YH?A;
printf("%c is a lowercase letter\n" ,ch); `W,gYH7
else if ((ch>='A') && (ch<='Z')) 6AV@O
print(" %c is a uppercase letter\n" ,ch); 2mN>7Tj:
else if((ch>'0')&&(ch<'9') WW82=2rJ9
printf(" %c is a number character between 0 and 9\n" ,ch) ; 7t= e"|^
else m,NUNd#)\
printf("%c is...") Y+75}]B
DP **pf%j
外面再加个循环就行了