Java Operators(Relational) | Set - 2
School Accuracy: 45.62% Submissions: 4569 Points: 0

Given two numbers you will have to check whether the first number is greater than or less than or equals to the second number.

Input: 
First line of input contains an integer T, which denotes the number of test cases. For each test case there will be two space seperated integers A and B.

Output:
If A > B then print "A is greater than B" without quotes
If A < B then print "A is less than B" without quotes
if A = B then print "A is equals to B" without quotes

Constraints:
1<=T<=100
1<=A,B<=1000

Example:
Input:
2
90 5
182 234

Output:
90 is greater than 5
182 is less than 234

to report an issue on this page.

Editorial

We strongly recommend solving this problem on your own before viewing its editorial. Do you still want to view the editorial?

Yes

All Submissions

My Submissions:

Login to access your submissions.