1 #include <stdio.h> 2 3 int main(){ 4 int T; 5 char a; 6 char b; 7 char compare; 8 9 scanf("%d",&T); 10 getchar(); 11 12 while(T--){ 13 scanf("%c %c",&a,&b); 14 getchar(); 15 16 if(a==b) 17 compare=‘=‘; 18 19 else if(a>b) 20 compare=‘<‘; 21 22 else 23 compare=‘>‘; 24 25 printf("%c%c%c\n",a,compare,b); 26 } 27 return 0; 28 }
原文:http://www.cnblogs.com/zqxLonely/p/4098241.html