Created
July 6, 2015 19:56
-
-
Save mgamba/e4b508a2c7180ece0a16 to your computer and use it in GitHub Desktop.
fizzbuzz
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
1.upto(100){|n|print ((n%3==0&&'FIZZ'||'')+(n%5==0&&'BUZZ'||'')).downcase!||n} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment