Created
December 10, 2012 22:51
-
-
Save bitmaybewise/4254068 to your computer and use it in GitHub Desktop.
FizzBuzz inline. It's bad.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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