Skip to content

Commit 6be113b

Browse files
committed
removed $ from expression variables a,b, and c
1 parent 2e4d874 commit 6be113b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

arithmeticOperations.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
a=1
33
b=2
44
c=3
5-
echo "$(($a+$b*$c))"
6-
echo "$(($a%$b+$c))"
7-
echo "$(($c+$a/$b))"
8-
echo "$(($a*$b+$c))"
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)