Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 49328b4

Browse files
Update Arthemetic-Operators.sh
1 parent 04bd590 commit 49328b4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎Arthemetic-Operators.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ read -r a
1010
echo -e "Please enter another value: \c"
1111
read -r b
1212

13-
echo "a+b value is $(($a+$b))"
14-
echo "a-b value is $(($a-$b))"
15-
echo "axb value is $(($a*$b))"
16-
echo "a/b value is $(($a/$b))"
17-
echo "a%b value is $(($a%$b))"
13+
echo "a+b value is $(($a+$b))"#it will add both the values
14+
echo "a-b value is $(($a-$b))"#it will subtract b form a
15+
echo "axb value is $(($a*$b))"#it will multiply both a and b
16+
echo "a/b value is $(($a/$b))"#it will divide b from a
17+
echo "a%b value is $(($a%$b))"#it will give the remainder when a is divided by b
1818

1919
echo "Completed successfully"
2020

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /