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;
}
}
0 Comments
If you have any doubts, Please let me know