The arithmetic mean is a value that is often used in statistics. A hospital's average temperature is precisely calculated using the formula for the arithmetic mean. And now we've come to the critical part: write a program that takes numbers from the keyboard, sums them, and then calculates the mean until the user enters the number -1.

# Arithmetic mean

- 8
Locked

expectsuser to eventually input -1. In the task's description,it is an condition, not an obligation. Hence, if the user doesn't input -1, the program returns an error, ie., never finishes. So, either change the requirements and say, not IF the user enters -1 but WHEN, or state the number of user inputs, so that the program can return an output in case the user doesn't enter -1.