FizzBuzz (#126)

Finally a quiz for newbies like me. :slight_smile:

ARGV[0].to_i.upto(ARGV[1].to_i) do |x|
  puts case [15,5,3].find {|i| x % i == 0}
    when 15 : 'FizzBuzz'
    when 5 : 'Buzz'
    when 3 : 'Fizz'
    when nil: x
  end
end

Thanks a lot for the quizzes, I'm teaching myself ruby with them.

ps: Is it ok to send solutions of previous quizzes?