int ch ; X q}Ucpj
ch=getche() ; }}^,7npU
if((ch>='a') && (ch<='z')) +Dx1/I
printf("%c is a lowercase letter\n" ,ch); j[J5y#
else if ((ch>='A') && (ch<='Z')) S=0"f}Jo.
print(" %c is a uppercase letter\n" ,ch); 7|&e[@B
else if((ch>'0')&&(ch<'9') X,C*qw@
printf(" %c is a number character between 0 and 9\n" ,ch) ; B :.@Qi^
else _BZ1Vnv
printf("%c is...") CQ6'b,L&
.]W;2G
外面再加个循环就行了