We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
  • Hackerrank Home
  • Prepare
    NEW
  • Certify
  • Compete
  • Career Fair
  • Hiring developers?
  1. Prepare
  2. Linux Shell
  3. Bash
  4. Comparing Numbers

Comparing Numbers

Problem
Submissions
Leaderboard
Discussions
Editorial
Tutorial

Given two integers, and , identify whether or or .

Exactly one of the following lines:
- X is less than Y
- X is greater than Y
- X is equal to Y

Input Format

Two lines containing one integer each ( and , respectively).

Constraints

-

Output Format

Exactly one of the following lines:
- X is less than Y
- X is greater than Y
- X is equal to Y

Sample Input

Sample Input 1

5  
2  

Sample Input 2

2
2  

Sample Input 3

2
3  

Sample Output

Sample Output 1

X is greater than Y  

Sample Output 2

X is equal to Y   

Sample Output 3

X is less than Y  

Explanation

-

Author

PRASHANTB1984

Difficulty

Easy

Max Score

3

Submitted By

103815

Need Help?


View tutorial
View discussions
View editorial
View top submissions

rate this challenge

MORE DETAILS

Download problem statement
Download sample test cases
Suggest Edits
  • Blog
  • Scoring
  • Environment
  • FAQ
  • About Us
  • Support
  • Careers
  • Terms Of Service
  • Privacy Policy