num = int(input())
sm = 0
count = 0
while num != 0:
sm += num
count += 1
print(sm / count)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
num = int(input())
sm = 0
count = 0
while num != 0:
sm += num
count += 1
num = int(input())
print(sm / count)