A shell script program to perform various arithmetic operation.
echo "Read the value of a"
read a
echo "Read the value of b"
read b
echo "Addition of two numbers `expr $a
+ $b`"
echo "Subtraction of two numbers `expr
$a - $b`"
echo "multiplication of two numbers
`expr $a \* $b`"
echo "Division of two numbers `expr $a
/ $b`"
echo "modulus of two numbers `expr $a %
$b`"
OUTPUT:
Read the value of a
4
Read the value of b
2
Addition of two numbers 6
Subtraction of two numbers 2
multiplication of two numbers 8
Division of two numbers 2
modulus of two numbers 0