Lab 7: Program to find largest among three number

echo "Enter the value of first, second & third"
read first
read second
read third
if [ $first -gt $second -a $first -gt $third ]
then
echo "First is Big"
elif [ $second -gt $third -a $second -gt $first ]
then
echo "Second is Big"
else
echo "Third is Big"
fi

No comments

Powered by Blogger.