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