We don't bite newbies here... much | |
PerlMonks |
Re: Golf Challenge: FizzBuzzby talexb (Chancellor) |
on Mar 02, 2007 at 20:41 UTC ( [id://602960]=note: print w/replies, xml ) | Need Help?? |
My father's a British actuary, so growing up we had an amusing variation on this game, often played in the car during long trips. In addition to 'fizz' (3) and 'buzz' (5) we would also play with 'sausage' (7) to make the game a bit more challenging. Of course, after someone had made a mistake, they had to drop out, which changed what order the fizz, buzz or sausage came around to you. And I don't think we ever made it as far as the first 'fizz-buzz-sausage' -- 105. Update: OK, let's see if I can pass the code testing bit: OK, except for a typo (I had 6 instead of 7) it worked first time. I guess I'm not too thumb-fingered. ps No, that was obviously *not* golfed. ;)
In Section
Meditations
|
|