Hello Programmers, In this post, you will know how to solve the Comparing Numbers HackerRank Solution. This problem is a part of the HackerRank Linux Shell Series.Comparing Numbers HackerRank SolutionOne more thing to add, don’t directly look for the solutions, first try to solve the problems of Hackerrank by yourself. If you find any difficulty after trying several times, then you can look for solutions.ProblemGiven two integers, X and Y, identify whether X < Y or X > Y or X = Y.Exactly one of the following lines:– X is less than Y– X is greater than Y– X is equal to YInput FormatTwo lines containing one integer each (X and Y, respectively).Constraints–Output FormatExactly one of the following lines:– X is less than Y– X is greater than Y– X is equal to YSample InputSample Input 152Sample Input 222Sample Input 323Sample OutputSample Output 1X is greater than YSample Output 2X is equal to YSample Output 3X is less than YComparing Numbers HackerRank Solutions#!/bin/bash read X read Y if (( $X > $Y )) then echo "X is greater than Y" fi if (( $X == $Y)) then echo "X is equal to Y" fi if(( $X < $Y)) then echo "X is less than Y" fiNote: This problem (Comparing Numbers) is generated by HackerRank but the Solution is Provided by BrokenProgrammers. This tutorial is only for Educational and Learning purposes.Next: Getting started with conditionals HackerRank Solution Post navigationThe World of Numbers HackerRank Solution Getting started with conditionals HackerRank Solution