Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Python :
- x=1
- while x<=100:
- output = ""
- if x%3 == 0:
- output += "Fizz"
- if x%5 == 0:
- output += "Buzz"
- if output == "":
- output = x
- print output
- x+=1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement