Skip to content

Commit 2e4d874

Browse files
committed
ADDED arithmeticoperations.sh
performed multiple arithmetic operations using three variables a,b, and c to understand operators precedence
1 parent 0212566 commit 2e4d874

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

arithmeticOperations.sh

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash -x
2+
a=1
3+
b=2
4+
c=3
5+
echo "$(($a+$b*$c))"
6+
echo "$(($a%$b+$c))"
7+
echo "$(($c+$a/$b))"
8+
echo "$(($a*$b+$c))"

0 commit comments

Comments
 (0)