Skip to content

Instantly share code, notes, and snippets.

@jmsword
Created October 25, 2016 02:41
Show Gist options
  • Save jmsword/bc5b6d3503e34947195d2ddc5da3d6c2 to your computer and use it in GitHub Desktop.
Save jmsword/bc5b6d3503e34947195d2ddc5da3d6c2 to your computer and use it in GitHub Desktop.
for n in range (1,100):
if (n % 3 == 0 and n % 5 == 0):
print ("FizzBuzz")
elif n % 5 == 0:
print("Buzz")
elif n % 3 == 0:
print("Fizz")
else:
print(n)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment