Skip to content

Instantly share code, notes, and snippets.

@jah2488
Created June 4, 2010 01:46
Show Gist options
  • Save jah2488/424796 to your computer and use it in GitHub Desktop.
Save jah2488/424796 to your computer and use it in GitHub Desktop.
def fizzbuzz(num):
x=1
while x < num:
if x%3 == 0 and x%5 == 0:
print "fizzbuzz"
elif x%5 == 0:
print "buzz"
elif x%3 == 0:
print "fizz"
else:
print x
x+=1
#end
#end
#end
#end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment