Comparing Numbers

  • + 1 comment

    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