Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
rubyでワンライナーfizzbuzz
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