Advertisement
daniil-vlasenko

7.9

Jun 25th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. k = 0
  2. kk = 0
  3. while 1:
  4. x = int(input())
  5. if x == 0:
  6. break
  7. if x % 2 == 0:
  8. kk += 1
  9. k += x
  10. print(k // kk)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement