int ch ; c?HUW
ch=getche() ; 5[SwF&zZ
if((ch>='a') && (ch<='z')) clV^Xg8D
printf("%c is a lowercase letter\n" ,ch); ]/1\.<uJId
else if ((ch>='A') && (ch<='Z')) =n"k gn
print(" %c is a uppercase letter\n" ,ch); =?.oH|&\h
else if((ch>'0')&&(ch<'9') 9D1WUUa
printf(" %c is a number character between 0 and 9\n" ,ch) ; _C?Wk:Y@
else T2<%[AF0
printf("%c is...") <A)M^,#o
dREY m}1
外面再加个循环就行了