int ch ; S_4?K)n #
ch=getche() ; b:m88AG
if((ch>='a') && (ch<='z')) gNrjo=
printf("%c is a lowercase letter\n" ,ch); [{,T.;'<j
else if ((ch>='A') && (ch<='Z')) wY%}
print(" %c is a uppercase letter\n" ,ch); \?ZB]*Fu
else if((ch>'0')&&(ch<'9') sA/D]W.P
printf(" %c is a number character between 0 and 9\n" ,ch) ; "]x'PI 4J
else Y%aCMP9j~9
printf("%c is...") PfD.:amN7
YQ)kRhFA
外面再加个循环就行了