int ch ; 7 -yf
ch=getche() ; .`qw8e}y#'
if((ch>='a') && (ch<='z')) MQ7d IUs
printf("%c is a lowercase letter\n" ,ch); Q${0(#Nu
else if ((ch>='A') && (ch<='Z')) =yo?] ZS
print(" %c is a uppercase letter\n" ,ch); M
^gva?{
else if((ch>'0')&&(ch<'9') "cSH[/
printf(" %c is a number character between 0 and 9\n" ,ch) ; V ':?rEN|
else zzOc
# /
printf("%c is...") { ]Tb
B^Y AKbY
外面再加个循环就行了