Created
October 25, 2016 02:41
-
-
Save jmsword/bc5b6d3503e34947195d2ddc5da3d6c2 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
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