Untitled

 avatar
unknown
plain_text
a year ago
265 B
3
Indexable
echo "PROGRAM TO FIND THE SMALLEST OF THREE NUMBERS"
echo "enter the first number: "
read a
echo  "enter the second number: "
read b
echo "enter the third number: "
read c
s=$a
if [ $b -lt $s ]
then
s=$b
fi
if [ $c -lt $s ]
then
s=$c
fi
echo "$s is the smallest "

Leave a Comment