int ch ; NV-9C$<n2!
ch=getche() ; N<> dg
if((ch>='a') && (ch<='z')) ;+b}@e
printf("%c is a lowercase letter\n" ,ch); JkxS1
else if ((ch>='A') && (ch<='Z')) FvI`S>
print(" %c is a uppercase letter\n" ,ch); L
kq>>?T=
else if((ch>'0')&&(ch<'9') TcfBfscU
printf(" %c is a number character between 0 and 9\n" ,ch) ; Jp-ae0 Ewa
else X)f"`$
printf("%c is...") kdYl>M
#1bgV
外面再加个循环就行了