Write a Shell Script to find the largest among the 3 given numbers using if-else-if ladder
echo "Enter first number: "
read a
echo "Enter second number: "
read b
echo "Enter third number: "
read c
if [ $a -gt $b -a $a -gt $c ]
then
echo "a is max"
elif [ $b -gt $a -a $b -gt $c ]
then
echo "b is max"
elif [ $c -gt $a -a $c -gt $b ]
then
echo "c is max"
else
echo "All are equal"
fi