You are on page 1of 2

Greatest number

echo "enter the numbers" read a b c if [ $a -gt $b -a $a -gt $c ] then echo "$ a is greater" elif [ $b -gt $c ] then echo "$b is greater" else echo "$c is greater" fi ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~

~ ~ "greater" [New] 11L, 167C writte

[VT7640@localhost greater]$ sh g enter the numbers 123 3 is greater

You might also like