int ch ; YyD0g9{
ch=getche() ; %2`.*]L
if((ch>='a') && (ch<='z'))
D~t
printf("%c is a lowercase letter\n" ,ch); *~jTE;J
else if ((ch>='A') && (ch<='Z')) ,uCgC4EP
print(" %c is a uppercase letter\n" ,ch); ;0:[X+"(
else if((ch>'0')&&(ch<'9') #HmZe98[%
printf(" %c is a number character between 0 and 9\n" ,ch) ; @@#h-k%k-
else ]R]%c*tA
printf("%c is...") 1C<@QrT
*L#\#nh7
外面再加个循环就行了