feat: Adiciona 04-fibonacci

This commit is contained in:
Izabela Balizardo 2022-10-29 19:01:28 -03:00
parent 993dfe0924
commit c0b30c28d8

View File

@ -1,4 +1,9 @@
export function fibonacci(value) { export function fibonacci(value) {
// implementar logica aqui // implementar logica aqui
} if (value === 0 || value === 1) {
return value;
} else {
return fibonacci(value - 1) + fibonacci(value - 2);
}
}