int ch ; A]z*#+Sl
ch=getche() ; fvkcJwkc
if((ch>='a') && (ch<='z')) HK@ij,px
printf("%c is a lowercase letter\n" ,ch); un{ZysmtB6
else if ((ch>='A') && (ch<='Z')) ^ Bx[%
print(" %c is a uppercase letter\n" ,ch); jJ,_-ui
else if((ch>'0')&&(ch<'9') 7GgZ: $d
printf(" %c is a number character between 0 and 9\n" ,ch) ; d#ir=+o{h
else g68p9#G
printf("%c is...") (`tRJWbdz
ScPVjqG2{
外面再加个循环就行了