CodeLab Academy 📞 9936 6696
← List Python · Level 5: While loops Code · 50 points ← #458 #460 →

#459. Read until 0: average (2 decimal places)

Numbers come one on each line. The input ends when the number 0 comes (the 0 is not counted). Find the **average (2 decimal places)** of the numbers. ### Input Several integers, the last one is 0. There is at least one number before the 0. ### Output The answer.

Examples

Input
-17
49
52
60
85
-48
0
Output
30.17
Input
60
0
Output
60.00

💡 You can solve it with Python, JavaScript or blocks. Read the input line by line with input(). Don't print a question (like input("Number: ")). Print exactly what the output asks for, nothing more.

🔒 You can solve the first 3 problems without an account. Sign up for free to solve this one!