Accepted solution

UVA 11172 - Relational Operators Solution in C++

Open original problem
Source code

#include <iostream>

using namespace std;

int main()

{

   int t,a,b;

   cin>>t;

   while(t>0)

   {

       cin>>a;

       cin>>b;

       if(a<b)

       {

           cout<<"<"<<endl;

       }

       else if(a>b)

       {

           cout<<">"<<endl;

       }

       else

       {

          cout<<"="<<endl;

       }

     

       t--;

   }

    return 0;

}
Join the discussion

Add your comment