Return
Styles:
Pseud0ch
,
Terminal
,
Valhalla
,
NES
,
Geocities
,
Blue Moon
.
Entire thread
Fibonacci
1
Name:
Anonymous
2011-03-01 9:13
Fibonacci(1)
GET
5
Name:
Anonymous
2011-03-01 13:12
Here is my implementation in Haskell.
fib 1 = 1
fib 2 = 1
fib n = fib (n - 1) + fib (n - 2)
main = (putStr . show) (fib 5)
Newer Posts
Don't change these.
Name:
Email:
Entire Thread
Thread List