int ch ; A/}[Z\C
ch=getche() ; l :u1P
if((ch>='a') && (ch<='z')) "5FP$oR
printf("%c is a lowercase letter\n" ,ch); S5F5Tr;TN
else if ((ch>='A') && (ch<='Z')) {2 T:4i5
print(" %c is a uppercase letter\n" ,ch); F=*t]X[z}
else if((ch>'0')&&(ch<'9') #hs&)6Sf
printf(" %c is a number character between 0 and 9\n" ,ch) ; <jYyA]Zy5
else IN#/~[W
printf("%c is...") lWJYT<kt
A0;{$/
外面再加个循环就行了