Created
April 29, 2013 07:04
-
-
Save pdarche/5480137 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
for num in range(1,101): | |
if num % 3 == 0 and num % 5 == 0: | |
print "FizzBuzz" | |
elif num % 5 == 0: | |
print "Buzz" | |
elif num % 3 == 0: | |
print "Fizz" | |
else: | |
print num |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment