Uva Problem 11172 - Relational Operator Solution

Problem Link
Uva Problem 11172 - Relational Operator Solution

Solution:
#include<iostream>

using namespace std;

int main()
{
    int t,a,b;
    cin>>t;
    while(t--)
    {
        cin>>a>>b;

        if(a>b)
            cout<<">"<<endl;
        else if(a<b)
            cout<<"<"<<endl;
        else if(a==b)
            cout<<"="<<endl;

    }
    return 0;
}

No comments

Theme images by enjoynz. Powered by Blogger.