>_ IzzyLab

Topic breakdown

Bash can compute integer arithmetic on its own, without bc or other calculators — for this there's arithmetic expansion inside double parentheses. Inside them variable names can be written even without a dollar sign, and the result is substituted as a number. The task teaches you to grab the script's positional parameters and add them inside this context; for fractional numbers this mechanism would no longer suffice.

What's checked

  1. prints the sum of the arguments

What it looks like