Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^3: Fibonacci Sequence

by skunix (Novice)
on Feb 27, 2013 at 15:21 UTC ( #1020906=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Fibonacci Sequence
in thread Fibonacci Sequence

Still not as short as yours but here is mine revised:

$~=$^++;_:$~^=$^ ^=$~^=$^;$_.=($~=$~+$^.$/);($~<$$)?goto _:print


Comment on Re^3: Fibonacci Sequence
Download Code
Replies are listed 'Best First'.
Re^4: Fibonacci Sequence
by Anonymous Monk on Mar 05, 2013 at 11:44 UTC

    Loopy version

    for($\=1;$/<1<<7;$\+=$/,$/=$\-$/){print $"}

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (10)
As of 2016-02-13 02:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?





    Results (417 votes), past polls