int ch ; pI}6AAs}Z
ch=getche() ; fn Pej?f:
if((ch>='a') && (ch<='z')) 5wbR}`8
printf("%c is a lowercase letter\n" ,ch); q=;U(,Y
else if ((ch>='A') && (ch<='Z')) `]5 t'Ps
print(" %c is a uppercase letter\n" ,ch); 7kmd.<
else if((ch>'0')&&(ch<'9') T5>'q;jM
printf(" %c is a number character between 0 and 9\n" ,ch) ; Je=k.pO1
else <UbLds{+Uo
printf("%c is...") h3MZLPe
ij02J`w:Ra
外面再加个循环就行了