6 lines
151 B
JavaScript
6 lines
151 B
JavaScript
export function fibonacci(value) {
|
|
// implementar logica aqui
|
|
if (value < 2) return value;
|
|
return fibonacci(value - 1) + fibonacci(value - 2);
|
|
}
|