UVA 11172 - Relational Operator

11172 Relational Operators


11172 - Relational Operator C++ Solution


#include<bits/stdc++.h>
#include<stdio.h>
#include<string.h>
#include<math.h>
#include<algorithm>
  
using namespace std;
int main()
{
    int n,a,b;
    cin>>n; //test case n
    for(int i=0;i<n;i++){
        cin>>a>>b; //input 2 integer
        if(a>b){ // check condision
            cout<<">"<<endl;
        }
        else if(a<b){
            cout<<"<"<<endl;
        }
        else{
            cout<<"="<<endl;
        }
    }
      

Post a Comment

0 Comments