int ch ; TRAs5I%
ch=getche() ; NeHR%a2~
if((ch>='a') && (ch<='z')) S_6`.@B}
printf("%c is a lowercase letter\n" ,ch); 7esG$sVj(
else if ((ch>='A') && (ch<='Z')) tZU"Ud
print(" %c is a uppercase letter\n" ,ch); A@_F ;4X
else if((ch>'0')&&(ch<'9') "`,PLC
printf(" %c is a number character between 0 and 9\n" ,ch) ; S,3e|-&$
else ^$_ifkkLz
printf("%c is...") +]CKu$,8
IVkKmO(qO
外面再加个循环就行了