int ch ; qh<h|C]V
ch=getche() ; B}y`E
<
if((ch>='a') && (ch<='z')) !J@!P?0. C
printf("%c is a lowercase letter\n" ,ch); /18VQ
else if ((ch>='A') && (ch<='Z')) PpF"n[j
print(" %c is a uppercase letter\n" ,ch); (g>>
else if((ch>'0')&&(ch<'9') +>,4d
printf(" %c is a number character between 0 and 9\n" ,ch) ; _Uxt9 X
else bw\a\/Dw
printf("%c is...") eJv_`#R&Of
Q\ AM]
U
外面再加个循环就行了