int ch ; M"$g*j
ch=getche() ; $MM[`^~
if((ch>='a') && (ch<='z')) %~0]o@LW7
printf("%c is a lowercase letter\n" ,ch); ;)ERxMun
else if ((ch>='A') && (ch<='Z')) fr8';Jm
print(" %c is a uppercase letter\n" ,ch); N1U.1~U
else if((ch>'0')&&(ch<'9') lGJ&\Lv:
printf(" %c is a number character between 0 and 9\n" ,ch) ; ppeF,Q
else 1\/~>
printf("%c is...") SE$l,Z"[*b
ler$HA%F]
外面再加个循环就行了