You are viewing a single comment's thread. Return to all comments →
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" fi
Seems like cookies are disabled on this browser, please enable them to open this website
An unexpected error occurred. Please try reloading the page. If problem persists, please contact support@hackerrank.com
Comparing Numbers
You are viewing a single comment's thread. Return to all comments →
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" fi