int ch ; BA @lk+aW
ch=getche() ; .wEd"A&j
if((ch>='a') && (ch<='z')) *<$*"p
printf("%c is a lowercase letter\n" ,ch); ttaM.
else if ((ch>='A') && (ch<='Z')) aq>kTaz
print(" %c is a uppercase letter\n" ,ch); & TCkpS
else if((ch>'0')&&(ch<'9') zq3\}9
printf(" %c is a number character between 0 and 9\n" ,ch) ; }kw#7m54
else @+&LYy72
printf("%c is...") DTX0
DzAg"6=CS
外面再加个循环就行了