Comparing Numbers

  • + 0 comments

    !/bin/bash

    read x read y if((x > y)); then echo "X is greater than Y" elif ((x < y)); then echo "X is less than Y" else echo "X is equal to Y" fi