int ch ; .lj5pmD
ch=getche() ; ]8wm1_qV
if((ch>='a') && (ch<='z')) PeIi@0vA
printf("%c is a lowercase letter\n" ,ch); Lk]|;F-2i
else if ((ch>='A') && (ch<='Z')) GU`q^q@Ea
print(" %c is a uppercase letter\n" ,ch); ?i_/f} .K
else if((ch>'0')&&(ch<'9') }Ifa5Lq)
printf(" %c is a number character between 0 and 9\n" ,ch) ; Z[VrRT,\c
else 0xDn!
printf("%c is...") }%}$h2:
v/xlb&Xx
外面再加个循环就行了