Here is a code in which simple arithmetic operation like-Addition , Subtraction, Multiplication, division and reminder are performed--
read a
read b
echo ******************************
echo Addition is= `expr $a + $b`
echo Substraction is= `expr $a - $b`
echo Modulas is= `expr $a % $b`
echo Multiplication is= `expr $a \* $b`
echo divide is= `expr $a / $b`
echo ******************************
read a
read b
echo ******************************
echo Addition is= `expr $a + $b`
echo Substraction is= `expr $a - $b`
echo Modulas is= `expr $a % $b`
echo Multiplication is= `expr $a \* $b`
echo divide is= `expr $a / $b`
echo ******************************
For Further Reading,
0 comments:
Post a Comment