int ch ; @_LN3zP
ch=getche() ; 2~t[RY
if((ch>='a') && (ch<='z')) ]$,UPR/3
printf("%c is a lowercase letter\n" ,ch); UAyC.$!
else if ((ch>='A') && (ch<='Z')) m{7(PHpw
print(" %c is a uppercase letter\n" ,ch); q/4 [3h
else if((ch>'0')&&(ch<'9') E~a3r]V/
printf(" %c is a number character between 0 and 9\n" ,ch) ; YLVPAODY
else 51QRM32Y
printf("%c is...") A|@_}h"WG
d` [HT``
外面再加个循环就行了