2023-10-10 22:11:30 +00:00
|
|
|
fibonacci = function <number> {
|
|
|
|
if number <= 1 {
|
2023-10-09 19:54:47 +00:00
|
|
|
1
|
|
|
|
} else {
|
2023-10-10 22:11:30 +00:00
|
|
|
(fibonacci number - 1) + (fibonacci number - 2)
|
2023-10-09 19:54:47 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-10-10 22:11:30 +00:00
|
|
|
(fibonacci 5)
|