int ch ; sZ,mRT
ch=getche() ; 0uf'6<f R
if((ch>='a') && (ch<='z')) "1U:qr2-H
printf("%c is a lowercase letter\n" ,ch); V|h/a\P
else if ((ch>='A') && (ch<='Z')) :.+?v*%;n
print(" %c is a uppercase letter\n" ,ch); c
QjzI#
else if((ch>'0')&&(ch<'9') 73C
printf(" %c is a number character between 0 and 9\n" ,ch) ; AV0C9a/td
else 1f"LAs`%
printf("%c is...") ZXf^HK
$1CAfSgKw
外面再加个循环就行了