照題意判斷大小輸出所求即可。
C++(0.012)
/*******************************************************/
/* UVa 11172 Relational Operators */
/* Author: Maplewing [at] knightzone.studio */
/* Version: 2012/01/16 */
/*******************************************************/
#include<iostream>
#include<cstdio>
using namespace std;
int main(){
int t, a, b;
while( scanf( "%d", &t ) != EOF ){
for( int i = 0 ; i < t ; i++ ){
scanf( "%d%d", &a, &b );
if( a > b ) printf( ">\n" );
else if( a < b ) printf( "<\n" );
else printf( "=\n" );
}
}
return 0;
}