Find the greatest among two numbers [Shell Program]



echo "Enter 1st number :\c"


read a


echo "Enter 2nd number :\c"


read b


if [ $a -gt $b ]


then


echo "$a greater than $b"


else


echo "$b less than $a"


fi





0 Comments