Created
February 14, 2018 02:56
-
-
Save excenter/8bb140ed5e38727ad8065696cccbb114 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print("crazy fizz bugs buzzy busniess") | |
for value in range(0,101): | |
mod = value%3 | |
mod5 = value%5 | |
if mod == 0: | |
print("fizz") | |
if mod == 0 | |
else: | |
mod5 = value%5 | |
if mod5 == 0: | |
print("buzz") | |
else: | |
mod = value%3 | |
mod5 = value%5 | |
if mod == 0 and mod5 == 0: | |
print("FizzBuzz") | |
else: | |
print(value) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment