int ch ; Li*eGlId
ch=getche() ; =U|N=/y#hJ
if((ch>='a') && (ch<='z')) r"$.4@gc
printf("%c is a lowercase letter\n" ,ch); (E,T#uc{
else if ((ch>='A') && (ch<='Z')) \~P=U;l=pO
print(" %c is a uppercase letter\n" ,ch); 1[_mEtM:]B
else if((ch>'0')&&(ch<'9') J0zn-
printf(" %c is a number character between 0 and 9\n" ,ch) ; q&C""!h^
else ]weoTn:
printf("%c is...") jYNrD"n
v}WR+)uFQ
外面再加个循环就行了