mirror of
https://github.com/techarkit/shell-scripting-tutorial.git
synced 2026-01-14 03:01:42 +00:00
Update Arthemetic-Operators.sh
This commit is contained in:
@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user