# include "stdio.h" main() { char a,b,x1,x2; printf("please input two word\n"); scanf("%c,%c",&a,&b); a=('a'<=x1<='z')?x1-32:x1; b=('a'<=x2<='z')?x2-32:x2; if('A'<=a<='Z'&&'A'<=b<='Z') printf("two is zhimu \n"); else if('A'<=a<='Z'&&'0'<=b<='9') printf("one is zhimu,one is shuzhi \n"); else if('0'<=a<='9'&&'A'<=b<='Z') printf("one is shuzhi,one is zhimu \n"); else if('0'<=a<='9'&&'0'<=b<='9') printf("two is shuzhi \n"); else printf("error \n"); getch(); }
我输入什么都只打印two is zhimu