Skip to content

Instantly share code, notes, and snippets.

@pdarche
Created April 29, 2013 07:04
Show Gist options
  • Save pdarche/5480137 to your computer and use it in GitHub Desktop.
Save pdarche/5480137 to your computer and use it in GitHub Desktop.
FizzBuzz
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