From: Brian Adkins Date: 2007-03-03T02:15:12+09:00 Subject: Re: Smallest FizzBuzz program Robert Klemme wrote: > On 02.03.2007 17:34, Jeremy McAnally wrote: >> 1.upto(100){|i|p"FizzBuzz#{i}"[i%3<1?0:i%5<1?4:8,i%15<1?8:4]} >> >> Shaves off 3 bytes. :) > > 100.times{|i|p"FizzBuzz#{i}"[i%3<1?0:i%5<1?4:8,i%15<1?8:4]} > > another two. :-) Nope. 100.times is not equivalent to 1.upto(100) - off by one error. > > robert