[Update] Illegible fibonacci sequence

Posted by Doomshammer on Saturday, January 20. 2007 at 12:46 in Anwendungen, English only, Privat, Thoughts

Today I though I'd build a quick fibonacci sequence script. And as I like to build ugly code, here is my try to make it a bit illegible:

QUOTE:
perl -le'for(0..42){f($_,\@f);print"f($_): $f[-1]";}sub f{($n,$f)=@_;if($n==1or$n==0){$$f[$n]=$n}$$f[$n]=$$f[$n-2]+$$f[$n-1];}'


The result looks like this:
QUOTE:
f(0): 0
f(1): 1
f(2): 1
f(3): 2
f(4): 3
f(5): 5
f(6): 8
f(7): 13
f(8): 21
f(9): 34
f(10): 55
[...]


Now I wanna see your illegible version of a fibonacci sequence script/programm. Language it's written in doesn't matter :-) Send it as email or as comment to this entry.
(@strcat: looking forward to see yours ;-) )

Calendar

Back May '13
Mon Tue Wed Thu Fri Sat Sun
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    

Quicksearch

Not for Sale!

This blog is not for sale!

Latest twitter

Latest Photos

ERROR: The HTTP server returned the error or the warning(result:403).

Getaggte Artikel

Buttons

Ich bin ein Dokuleser
Get OpenSolaris
Gimme a Smile
neessen.net - Webhosting
I'm a blogger!
Lebst Du noch oder oarks Du schon?
last.fm
trnd - be trendy
I hear Metal
Visit GeoURL
Powered by Linux
Zsh lover
VIM! The Editor
Get Firefox
Ihr, nicht ich!
My amazon wishlist

BLOGROLL