Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Golf Challenge: FizzBuzz

by jking (Novice)
on Jun 14, 2007 at 20:59 UTC ( #621333=note: print w/ replies, xml ) Need Help??


in reply to Golf Challenge: FizzBuzz

My solution is in my sig... this is an old thread, but I was only recently tempted by someone I met at a con to try golfing.

It's quite addicting... I can't wait to find a way to golf mine down to at least 50 chars.

print$_%15?$_%3?$_%5?$_:'Buzz':'Fizz':'Fizzbuzz' for 1..100;


Comment on Re: Golf Challenge: FizzBuzz
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://621333]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2015-07-04 15:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls