Skip to content

Instantly share code, notes, and snippets.

@bitmaybewise
Created December 10, 2012 22:51
Show Gist options
  • Save bitmaybewise/4254068 to your computer and use it in GitHub Desktop.
Save bitmaybewise/4254068 to your computer and use it in GitHub Desktop.
FizzBuzz inline. It's bad.
100.times {|n| puts (if n % 3 == 0 && n % 5 == 0; 'FizzBuzz'; elsif n % 3 == 0; 'Fizz'; elsif n % 5 == 0; 'Buzz'; else; n; end)}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment