Skip to content

Instantly share code, notes, and snippets.

@hajimehoshi
Created January 23, 2011 18:43
Show Gist options
  • Save hajimehoshi/792313 to your computer and use it in GitHub Desktop.
Save hajimehoshi/792313 to your computer and use it in GitHub Desktop.
(1..?d).each{|i|puts i%15>0?i%5>0?i%3>0?i:'Fizz':'Buzz':'FizzBuzz'}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment