int ch ; `a:L%Ex
ch=getche() ; h}@)oSX
}
if((ch>='a') && (ch<='z')) `GQ'yv
printf("%c is a lowercase letter\n" ,ch); 7$/%c{o
else if ((ch>='A') && (ch<='Z')) \}9GK`oR
print(" %c is a uppercase letter\n" ,ch); /GDGE }
else if((ch>'0')&&(ch<'9') l We1Q#
printf(" %c is a number character between 0 and 9\n" ,ch) ; .V'=z|
else C?h`i ^ >2
printf("%c is...") 0//B+.#
,^d!K(xb
外面再加个循环就行了