int ch ; NU/:jr.W#
ch=getche() ; Pu `;B
if((ch>='a') && (ch<='z')) Y| 2Gj(*8
printf("%c is a lowercase letter\n" ,ch); 5m\T~[`%
else if ((ch>='A') && (ch<='Z')) nm{J
print(" %c is a uppercase letter\n" ,ch); ;+NU;f/WM
else if((ch>'0')&&(ch<'9') fZNWJo# `.
printf(" %c is a number character between 0 and 9\n" ,ch) ; NzAMX+L
else VPI;{0kh
printf("%c is...") 0~GtK8^B
Sft+Gb6
外面再加个循环就行了