int ch ; Y- 9j2.{
ch=getche() ; I,q~*d
if((ch>='a') && (ch<='z')) Gl\RAmdc
printf("%c is a lowercase letter\n" ,ch); 3uiitjA]
else if ((ch>='A') && (ch<='Z')) 7PPsEU:rf
print(" %c is a uppercase letter\n" ,ch); &5CeRx7%
else if((ch>'0')&&(ch<'9') ]$X=~>w
printf(" %c is a number character between 0 and 9\n" ,ch) ; .
*+7xL
else bJu,R-f
printf("%c is...") FP
cvkXQD
hYQ%|CBXBR
外面再加个循环就行了