Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Golf Challenge: FizzBuzz

by haoess (Curate)
on Mar 02, 2007 at 19:38 UTC ( #602946=note: print w/ replies, xml ) Need Help??


in reply to Golf Challenge: FizzBuzz

Two more:

# 61 print substr FizzBuzz.$_,$_%3?$_%5?8:4:0,$_%15?4:8 for 1..100
and
# 58 print+($_,Fizz,Buzz,FizzBuzz)[!($_%3)+!($_%5)*2]for 1..100

--Frank


Comment on Re: Golf Challenge: FizzBuzz
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (12)
As of 2014-04-16 16:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (433 votes), past polls