From: Martin DeMello Date: 2007-03-03T05:48:49+09:00 Subject: Re: Smallest FizzBuzz program On 3/3/07, Brian Adkins wrote: > > Nice work. I removed ,x from |i,x| on a whim and it still works - 57 > bytes! (you have to count file size which as an EOF char) > > 1.upto(?d){|i|i%3<1&&x=:Fizz;puts i%5<1?"#{x}Buzz":x||i} Slight variant, though sadly the same length: 1.upto(?d){|i|puts ["%sBuzz"%x=[:Fizz][i%3]][i%5]||x||i} martin