X660: Average numbers

Given an array of doubles, return the average of all the values in the array.

Examples:

avg({1.3, 2.5, 5.0, 2.0}) -> 2.7

Your Answer:

Reset

Practice a different Java exercise

Feedback

Your feedback will appear here when you check your answer.