Exercise: Use basic arithmetic
To calculate the mean of the numbers 2
, 3
, 7
and 8
:
- Add all the numbers together using
+
. - Divide the result by the number of elements.
- Make sure that the result of the addition is calculated first by using braces
()
.
Results
Submit code to see output here.