Task 2 of 7 · 0 solved · 7 to go0%
You can read the problem, but answers are checked only for signed-in students. Sign in to answer →

6.2 Data sets — average

Total: 0 / 3 pts
Practice mode — check each part and get hints as you go.
Task

Fill in average so that it returns the mean of the values as a double.

The program prints 90.0. Watch the division: an int divided by an int loses the fraction.

Your solution