Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

greatest of three numbers

# Hello World Program in Bash Shell
a=10
b=20
c=30
if [ $a -gt $b ]
then
if [ $a -gt $c ]
then
echo "$a is maximum"
else 
echo "$c is maximum"
fi
else
if [ $b -gt $c ]
then
echo "$b is maximum"
else
echo "$c is maximum"
fi
fi









Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.