-
Notifications
You must be signed in to change notification settings - Fork 0
/
ChefAndOperators.cpp
58 lines (46 loc) · 1.06 KB
/
ChefAndOperators.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/*
Chef has just started Programming, he is in first year of Engineering. Chef is reading about Relational Operators.
Relational Operators are operators which check relatioship between two values. Given two numerical values A and B you need to help chef in finding the relationship between them that is,
First one is greater than second or,
First one is less than second or,
First and second one are equal.
Input
First line contains an integer T, which denotes the number of testcases. Each of the T lines contain two integers A and B.
Output
For each line of input produce one line of output. This line contains any one of the relational operators
'<' , '>' , '='.
Constraints
1 ≤ T ≤ 10000
1 ≤ A, B ≤ 1000000001
Example
Input:
3
10 20
20 10
10 10
Output:
<
>
=
Explanation
Example case 1. In this example 1 as 10 is lesser than 20.
*/
#include<iostream>
using namespace std;
int main()
{
int t;
cin>>t;
while(t-->0)
{
long long int a,b;
cin>>a>>b;
if(a>b)
cout<<">"<<endl;
else if(a<b)
cout<<"<"<<endl;
else
cout<<"="<<endl;
}
return 0;
}