Java if-else (Decision Making)
Submissions: 2625   Accuracy:

52.84%

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

Given two integers, m and n. The task is to check whether m!=n or m=n.

Input:
The first line of input contains T, denoting the number of testcases. Then T testcase follow. First line of each testcase contains two integer m and n separated by space.

Output:
For each testcase in new line, print lesser, greater or equal for m!=n, or m=n respectively.

Constraints:
1 <= T <= 10
-100 <= m <= 100
-100 <= n <= 100

Example:
Input:
3
4 8
4 4
-2 -5

Output:
lesser
equal
greater

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

Contributor: Gaurav Miglani
Author: gaurav miglani


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.