int ch ; MLoYnR^
ch=getche() ; )k\H@Dy%$
if((ch>='a') && (ch<='z')) +1uF !G&l
printf("%c is a lowercase letter\n" ,ch); U}6B*Xx'
else if ((ch>='A') && (ch<='Z')) 6ys
&zy
print(" %c is a uppercase letter\n" ,ch); iI\oz&!vH
else if((ch>'0')&&(ch<'9') [0(B>a3J
printf(" %c is a number character between 0 and 9\n" ,ch) ; N/Z2hn/m
else YUx.BZf7
printf("%c is...") gYNjzew'
xAK6pDp
外面再加个循环就行了