Advertisement
karolinagergert

Untitled

Jul 12th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.11 KB | None | 0 0
  1. count=1
  2. s=x
  3. x = int(input())
  4. while x !=0:
  5. x = int(input())
  6. s+=x
  7. count+=1
  8. print(count, s, s/count)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement