Write a shell script to find smallest of 3 numbers that are read from keyboard
Answers
Answered by
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
Social Sciences,
6 months ago
Hindi,
6 months ago
English,
6 months ago
India Languages,
1 year ago
Environmental Sciences,
1 year ago
Geography,
1 year ago
Social Sciences,
1 year ago