Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print "This is a FizzBuzz game!"
- start = int(raw_input("Please enter a number between 1 and 100: "))
- for x in range (1, start + 1):
- if x % 3 == 0 and x % 5 == 0:
- print "Fizzbuzz"
- elif x % 5 == 0:
- print "Buzz"
- elif x % 3 == 0:
- print "Fizz"
- else:
- print x
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement