Skip to content

Instantly share code, notes, and snippets.

@excenter
Created February 14, 2018 02:56
Show Gist options
  • Save excenter/8bb140ed5e38727ad8065696cccbb114 to your computer and use it in GitHub Desktop.
Save excenter/8bb140ed5e38727ad8065696cccbb114 to your computer and use it in GitHub Desktop.
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