int ch ; JrJo|0Q
ch=getche() ; jZu[n)u'C
if((ch>='a') && (ch<='z')) {3|t;ZHk
printf("%c is a lowercase letter\n" ,ch); |B?cVc0
else if ((ch>='A') && (ch<='Z')) g#"zQv ON
print(" %c is a uppercase letter\n" ,ch); C8J[Up
else if((ch>'0')&&(ch<'9') {c6=<Kv
printf(" %c is a number character between 0 and 9\n" ,ch) ; `!obGMTQ<
else &p'Y^zL-
printf("%c is...") hr#M-K
{BP{C=p
外面再加个循环就行了