Feature #1

Merged
WilliamSimao merged 11 commits from Feature into master 2022-11-01 00:09:34 +00:00
Showing only changes of commit 88401e3255 - Show all commits

View File

@ -1,4 +1,16 @@
export function fibonacci(value) { export function fibonacci(value) {
// implementar logica aqui // implementar logica aqui
let soma = 0;
let anterior = 0;
let proximo = 1;
for (let i = 0; i < value; i++) {
soma = anterior + proximo;
anterior = proximo;
proximo = soma;
}
return anterior;
} }