News for hackers. Stuff that matters.
Re:Happy Birthday, Ruby by fouc on Thursday January 10, 2019 @11:39AM (#18875202)
ruby:

  1.upto(100) do |n|
    puts [ ("Fizz" if a = (n % 3).zero?), ("Buzz" if b = (n % 5).zero?), ( n unless (a || b) )].join
  end

There are no comments on this comment yet.