From: Sun Park Date: 2007-06-04T00:02:22+09:00 Subject: Re: FizzBuzz (#126) ------=_Part_19210_16858797.1180882939619 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Here is my 56B 1.upto(?d){|x|x%5>0||b=:Buzz;puts x%3>0?b||x:"Fizz%s"%b} I think my code looks similar to Joshua's.. 2007/6/3, Sun Park : > > Sorry I didn't see previous posts.. ;) > > 2007/6/3, Joshua Ballanco : > > > > Robert Dober wrote: > > > On 6/3/07, Joshua Ballanco wrote: > > >> "Buzz" > > >> "Fizz" > > >> 97 > > >> 98 > > >> "Fizz" > > >> "Buzz" > > > Have been there, but this is not a valid solution, sorry to say so :( > > > you gotta get rid of the quotes in the output. > > Crud, I just tested at http://golf.shinh.org/p.rb?FizzBuzz and you're > > right... > > > > For those interested, the code was: > > > > 1.upto(?d){|i,x|i%5>0||x=:Buzz;p i%3>0?x||i:"Fizz#{x}"} > > > > -- > > Posted via http://www.ruby-forum.com/. > > > > > ------=_Part_19210_16858797.1180882939619--