Expected Output not coming while comparing 2 numbers in linux
<p><a href="https://i.stack.imgur.com/zes8a.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zes8a.png" alt=""></a>
<a href="https://www.hackerrank.com/challenges/bash-tutorials---comparing-numbers" rel="nofollow noreferrer">https://www.hackerrank.com/challenges/bash-tutorials---comparing-numbers</a></p>

<p><strong>HackerRank Problem:Comparing Numbers</strong></p>

<blockquote>
  <p>I am writing a simple problem in linux that says Given two integers, X and Y, identify whether X is greater than Y or X is less than Y or X is equal to Y:</p>
</blockquote>

<p>Below is my Code:</p>

<pre><code>read x y

if ((x&gt;y)); then  
echo "x is greater than y"; 
elif ((x==y)); then  
echo "x is equal to y"; 
else  
echo "x is less than y"; 
fi;
</code></pre>

<p>But I am not getting correct answer in some of the Shells:
I don't know how to correct and why isn't not working in some of the bash shells.</p>

<blockquote>
  <p>Can anyone guide me Why and How to correct this?
  Thanx in advance.</p>
</blockquote>