Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x = 1
- for x in range(1, 101):
- if x % 3 == 0 and x % 15 != 0:
- print 'fizz'
- elif x % 5 == 0 and x % 15 != 0:
- print 'buzz'
- elif x % 15 == 0:
- print 'fizzbuzz'
- else:
- print x
- x = x + 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement