Created
April 21, 2016 07:20
-
-
Save kobaken0029/28783bae0e3cdf4438f54c6e34d69fa0 to your computer and use it in GitHub Desktop.
rubyでワンライナー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 i%15==0?'fizzbuzz':i%5==0?'buzz':i%3==0?'fizz':i} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment