Skip to content

Instantly share code, notes, and snippets.

@Najaf
Created April 5, 2010 18:39
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save Najaf/356703 to your computer and use it in GitHub Desktop.
(1..100).each do |i|
print "Fizz" if i % 3 == 0
print "Buzz" if i % 5 == 0
print i.to_s unless i % 3 == 0 or i % 5 == 0
print "\n"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment