Java Operators(Relational) | Set - 2
Submissions: 3790   Accuracy:

46.17%

  Difficulty: School   Marks: 0
*School Problem's Submission isn't counted in score!

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

** For More Input/Output Examples Use 'Expected Output' option **

Author: saksham0751


If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.



Need help with your code? Please use ide.geeksforgeeks.org, generate link and share the link here.


to report an issue on this page.