From: Brad Phelan Date: 2007-06-06T22:00:09+09:00 Subject: Re: [QUIZ] FizzBuzz (#126) I am sure I just submitted this with a lengthy explanation but it didn't appear in the list ??? So here it is again with no explanation except that it minimizes method calls as much as possible by avoiding modulo operation and maintaining separate counters. f = 3 b = 5 for i in 1..100 do if i == f if i == b puts "fizzbuzz" f += 3 b += 5 else puts "fizz" f += 3 end elsif i == b puts "buzz" b += 5 else puts i end end