1
0

10 lines
90 B
Plaintext
Raw Normal View History

2024-01-28 18:42:27 -05:00
fib = (i <int>) <int> {
2023-10-13 15:20:20 -04:00
if i <= 1 {
2023-10-09 15:54:47 -04:00
1
} else {
2024-01-28 17:46:15 -05:00
fib(i - 1) + fib(i - 2)
2023-10-09 15:54:47 -04:00
}
}
2024-01-28 18:42:27 -05:00
fib(8)