public
Created

Ruby Golf 1 FizzBuzz (http://rubysource.com/ruby-golf/)

  • Download Gist
rubygolf_1.rb
Ruby
1
def fizzbuzz(n)n%15==0?"FizzBuzz": n%5==0?"Buzz": n%3==0?"Fizz": n.to_s end

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.