From: "William (Bill) Froelich" Date: 2007-06-03T02:16:57+09:00 Subject: Re: [QUIZ] FizzBuzz (#126) > On Sat, Jun 02, 2007 at 09:06:50PM +0900, Daniel Martin wrote: > > Ruby Quiz writes: > > > > > Write a program that prints the numbers from 1 to 100. > > > But for multiples of three print "Fizz" instead of the > > > number and for the multiples of five print "Buzz". For > > > numbers which are multiples of both three and five > > > print "FizzBuzz". > > > > Anyone care for a friendly game of golf? > > I've got this in 67 characters... > > Actually, I've now got 65 character or 62 characters. The 62 > character version interprets the specification literally by > printing "Fizz", "Buzz" or "FizzBuzz" *with* the double > quotation marks :-) Speaking of literal interpetation, the original Quiz post came across in my mail with a number of non-standard ASCII characters wrapped around the Fizz and Buzz text. but for multiples of three print “Fizz” instead of the number and for the multiples of five print “Buzz”. For numbers which are multiples of both three and five print “FizzBuzz”. I spent a bunch of time trying to figure out how to output those (unsuccessfully) after getting my initial solution working. Based on a number of the other posts on the topic it appears that the real requirement was to output Fizz, Buzz or FizzBuzz only without the other characters. Is that correct? Just curious while I wait to post my first quiz submission. --Bill