int ch ; R,|d`)T
ch=getche() ; rFC" Jx
if((ch>='a') && (ch<='z')) sO.`x*
printf("%c is a lowercase letter\n" ,ch); L2, 1Kt7
else if ((ch>='A') && (ch<='Z')) z.Y$7bf)
print(" %c is a uppercase letter\n" ,ch); d)pV;6%[$q
else if((ch>'0')&&(ch<'9') QF&W`c
printf(" %c is a number character between 0 and 9\n" ,ch) ; ,:??P1
else w~
[b*$
printf("%c is...") f|R"uW +
u%/goxA
外面再加个循环就行了