Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. y = 0
  2. for x in xrange(0,1000):
  3. if x % 3 == 0:
  4. y = y + x
  5. elif x % 5 == 0:
  6. y = y + x
  7. else:
  8. if x % 5 == 0:
  9. if x % 3 == 0:
  10. y = y + x
  11. else:
  12. pass
  13. else:
  14. pass
  15. print y
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement