Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def fb(n):
- i = 1
- while i < 101:
- if i % 15 == 0:
- print(i, "Fizz Buzz!")
- elif i % 3 == 0:
- print(i, "Fizz!")
- elif i % 5 == 0:
- print(i, "Buzz!")
- else:
- print(i)
- i += 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement