int ch ; `m~syKz4A
ch=getche() ; kMxazx1
if((ch>='a') && (ch<='z')) tJI,r_
printf("%c is a lowercase letter\n" ,ch); w5C*L)l
else if ((ch>='A') && (ch<='Z')) BNGe
exs@
print(" %c is a uppercase letter\n" ,ch); WgR4Ix^L#
else if((ch>'0')&&(ch<'9') -\$`ic$"1
printf(" %c is a number character between 0 and 9\n" ,ch) ; Kf,-4)
else TW&DFKK`
printf("%c is...") dWRrG-'
M~
h8Crz
外面再加个循环就行了