Untitled

mail@pastecode.io avatar
unknown
plain_text
19 days ago
265 B
2
Indexable
Never
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