Which bash commands result in a valid arithmetic expansion? (Choose three)

Which bash commands result in a valid arithmetic expansion? (Choose three)
A . TOTAL=$((5.3+2.2))
B . TOTAL=$[8/2]
C . TOTAL=$[8.4/2.1]
D . TOTAL=$[2.1*4]
E . TOTAL=$((5+2))
F . ((TOTAL++))

Answer: A,E

Subscribe
Notify of
guest
1 Comment
Inline Feedbacks
View all comments
Ryan
Ryan
1 year ago

Answer: B, E, F