Friday, April 29, 2016

UVA problem 11172 – Relational Operator

Problem link (Click here)

#include<iostream>
using namespace std;

int main ()
{
    int i, t, a, b;
    cin>>t;
    for(i=0; i<t; i++){
         cin>>a>>b;
        if(a<b)
            cout<<'<'<<endl;
         else if (a>b)
            cout<<'>'<<endl;
        else
            cout<<'='<<endl;
    }
    return 0;
}


No comments:

Post a Comment