int ch ; ]q~_
ch=getche() ; 5?9K%x'b
if((ch>='a') && (ch<='z')) 7jPPN
printf("%c is a lowercase letter\n" ,ch); #;4<dDVy
else if ((ch>='A') && (ch<='Z')) D"UCe7
print(" %c is a uppercase letter\n" ,ch); l6]:Zcd0
else if((ch>'0')&&(ch<'9') l.[S.@\ =.
printf(" %c is a number character between 0 and 9\n" ,ch) ; Gi]R8?M
else W@Et
printf("%c is...") *DfwTbg|
E}LYO:
外面再加个循环就行了