Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- count=1
- s=x
- x = int(input())
- while x !=0:
- x = int(input())
- s+=x
- count+=1
- print(count, s, s/count)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement