int ch ; >VX'`5r>uw
ch=getche() ; tCar:p4$
if((ch>='a') && (ch<='z')) ~l*<LXp8
printf("%c is a lowercase letter\n" ,ch); x($Djx
else if ((ch>='A') && (ch<='Z')) 1X9s\JKQ
print(" %c is a uppercase letter\n" ,ch); g#cet{>
else if((ch>'0')&&(ch<'9') evNe6J3
printf(" %c is a number character between 0 and 9\n" ,ch) ; g-]~+7LL
else *-{|m1P
printf("%c is...") m4Ue)
Ndgx@LTQQ
外面再加个循环就行了