int ch ; YZf6|
ch=getche() ; dihjpI_
if((ch>='a') && (ch<='z')) Uz7oL8
printf("%c is a lowercase letter\n" ,ch); %r\n%$@_
else if ((ch>='A') && (ch<='Z')) '9p@vi{\
print(" %c is a uppercase letter\n" ,ch); eV^d6T$
else if((ch>'0')&&(ch<'9') "r4AY
printf(" %c is a number character between 0 and 9\n" ,ch) ; N2r/ho}8
else [lzN !!B!
printf("%c is...") op2Of<{h
F9"w6;hh
外面再加个循环就行了