Problem Statement
How is arithmetic performed in shell scripting?
Explanation
Arithmetic can be done using double parentheses (( )), expr, or the let command.
For example, result=$((a + b)) is preferred because it’s concise and supports multiple operators without needing escape characters.
Code Solution
SolutionRead Only
a=5; b=10; sum=$((a + b)); echo $sum