Write a Shell Script to find the largest among the 3 given numbers using nested if
echo "Enter first number: "
read a
echo "Enter second number: "
read b
echo "Enter third number: "
read c
# Using Nested if statement....
if [ $a -eq $b -a $a -eq $c ]
then
echo "All are equal"
else
if [ $a -ge $b ]
then
if [ $a -ge $c ]
then
echo "a is max"
else
echo "c is max"
fi
else
if [ $b -ge $c ]
then
echo "b is max"
else
echo "c is max"
fi
fi
fi