Last active
August 29, 2015 14:05
-
-
Save zwpp/3895230d3a313185da23 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){|i|puts (s=(i%3==0?'Fizz':'')+(i%5==0?'Buzz':''))==''?i:s} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment