int ch ; DJrA@hm/Y
ch=getche() ; m:p1O3[R
if((ch>='a') && (ch<='z')) _h@e.BtDs
printf("%c is a lowercase letter\n" ,ch); p@r~L(>+3
else if ((ch>='A') && (ch<='Z')) 8@b@y|#]X
print(" %c is a uppercase letter\n" ,ch); n/^wzG
else if((ch>'0')&&(ch<'9') -I4@` V
printf(" %c is a number character between 0 and 9\n" ,ch) ; @BW~A@8
else xQaN\):^8
printf("%c is...") @xO<~
uiDR}
外面再加个循环就行了