Skip to content

Instantly share code, notes, and snippets.

@sinefunc
Created July 22, 2010 03:57
Show Gist options
  • Save sinefunc/485551 to your computer and use it in GitHub Desktop.
Save sinefunc/485551 to your computer and use it in GitHub Desktop.
(1..100).each {|i| puts [i,[("Fizz"\
if i%3 ==0) ,("Buzz"\
if i%5.0000 ==0) ].join\
('')]. join ("\n")}#FizzBuzz#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment