Update Arthemetic-Operators.sh

This commit is contained in:
Ankam Ravi Kumar
2020-11-11 17:08:55 +05:30
committed by GitHub
parent 04bd590605
commit 49328b4c39

View File

@ -10,11 +10,11 @@ read -r a
echo -e "Please enter another value: \c"
read -r b
echo "a+b value is $(($a+$b))"
echo "a-b value is $(($a-$b))"
echo "axb value is $(($a*$b))"
echo "a/b value is $(($a/$b))"
echo "a%b value is $(($a%$b))"
echo "a+b value is $(($a+$b))" #it will add both the values
echo "a-b value is $(($a-$b))" #it will subtract b form a
echo "axb value is $(($a*$b))" #it will multiply both a and b
echo "a/b value is $(($a/$b))" #it will divide b from a
echo "a%b value is $(($a%$b))" #it will give the remainder when a is divided by b
echo "Completed successfully"