Sunday, 10 August 2014

Write a shell script to find smallest of three numbers that are read from keyboard. echo "Enter the Three Numbers"


read a b c
if [ $a -le $b -a $a -le $c ]
then
echo "$a is Smallest"
elif [ $b -le $c -a $b -le $a ]
then
echo "$b is Smallest"
else
echo "$c is Smallest"
fi 

1 comments:

Unknown said...

Good

Post a Comment

 
- |