12 lines
182 B
Plaintext
12 lines
182 B
Plaintext
|
fibonacci = function <number> {
|
||
|
if number <= 0 then 0
|
||
|
else if number == 1 then 1
|
||
|
else
|
||
|
first = fibonacci { number - 2 }
|
||
|
second = fibonacci { number - 1 }
|
||
|
|
||
|
first + second
|
||
|
}
|
||
|
|
||
|
|