fibonacci atualizado

This commit is contained in:
Nathalia Sardou 2022-10-30 00:21:23 -03:00
parent e5eab36b76
commit 74f51d2317

View File

@ -1,4 +1,5 @@
export function fibonacci(value) {
// implementar logica aqui
}
if (value < 2) return value;
return fibonacci(value - 1) + fibonacci(value - 2);
}