int ch ; 8LuM eGs
ch=getche() ; jMUd,j`Opx
if((ch>='a') && (ch<='z')) q[?xf3
printf("%c is a lowercase letter\n" ,ch); h [*/Tnr
else if ((ch>='A') && (ch<='Z')) `%S 35x9
print(" %c is a uppercase letter\n" ,ch); "y~tAg
else if((ch>'0')&&(ch<'9') fghw\\]3
printf(" %c is a number character between 0 and 9\n" ,ch) ; )&/ecx"2Q
else g{PEplk
printf("%c is...") E$O-\)wY0
|)~t^
外面再加个循环就行了