12 lines
142 B
Plaintext
12 lines
142 B
Plaintext
|
fibonacci = function <i> {
|
||
|
if i <= 1 {
|
||
|
1
|
||
|
} else if i == 2 {
|
||
|
2
|
||
|
} else {
|
||
|
output (fibonacci - 1) + (fibonacci - 2)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
(fibonacci 20)
|