Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- y = 0
- for x in xrange(0,1000):
- if x % 3 == 0:
- y = y + x
- elif x % 5 == 0:
- y = y + x
- else:
- if x % 5 == 0:
- if x % 3 == 0:
- y = y + x
- else:
- pass
- else:
- pass
- print y
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement