You are viewing a single comment's thread. Return to all comments →
My Code is Following but can't able to pass test case from 1 to 5 only 2/7 test cases passed . I can't find the issue? Guide me. Thanks
read -p "first interger" x
read -p "second interger" y
if [[ y ]] then echo " X is less then Y " elif [[ y ]] then echo " X is greater then Y " else echo "X is equal to 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 →
My Code is Following but can't able to pass test case from 1 to 5 only 2/7 test cases passed . I can't find the issue? Guide me. Thanks
!/bin/bash
Give two interger
read -p "first interger" x
read -p "second interger" y
if [[ y ]] then echo " X is less then Y " elif [[ y ]] then echo " X is greater then Y " else echo "X is equal to Y" fi