Advertisement
Guest User

дз(8)

a guest
Apr 19th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. count = 0
  2. while True:
  3. x = int(input())
  4. if x==0:
  5. break
  6. if x%2==0 and x%5==0:
  7. count = count + x
  8. print(count)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement