Computer Science, asked by joysijo1565, 1 year ago

Write a shell script to find smallest of 3 numbers that are read from keyboard

Answers

Answered by jacobpankavil
1

Answer:

Explanation:

echo Enter 3 numbers with spaces in between

read a b c

s=$a

if [ $b -lt $s ]

then

s=$b

fi

if [ $c -lt $s ]

then

s=$c

fi

echo Smallest of $a $b $c is $s

Similar questions