Created
June 5, 2016 16:02
-
-
Save ghughes13/034d1c9c925929ac8b30cbeb9dbc384e to your computer and use it in GitHub Desktop.
FizzBuzz
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
#####FizzBuss Coded Alone#### | |
for i in range(1,21): | |
if i % 2 == 0 and i % 5 == 0: | |
print "FIZZBUZZ" | |
elif i % 2 == 0: | |
print "FIZZ" | |
elif i % 5 == 0: | |
print "BUZZ" | |
else: | |
print i |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment