#!/bin/bash echo "Hello world!" echo "Enter first number:" read a echo "Enter second number:" read b sum=$((a + b)) echo "The sum is: $sum" echo " enter third number " read c if [[ ($a -gt $b) && ($a -gt $c) ]] then echo " a is greater " elif [[ ($b -gt $a) && ($b -gt $c) ]] then echo " b is greater " elif [[ ($c -gt $a) && ($c -gt $b) ]] then echo " c is greater" fi if [[ ($a -lt $b) && ($a -lt $c) ]] then echo " a is smaller " elif [[ ($b -lt $a) && ($b -lt $c) ]] then echo " b is smaller " elif [[ ($c -lt $a) && ($c -lt $b) ]] then echo " c is smaller" fi
To embed this program on your website, copy the following code and paste it into your website's HTML: