feature/algorithms #1

Merged
Vitor_soares merged 10 commits from feature/algorithms into master 2022-10-28 23:12:43 +00:00
Showing only changes of commit bfdc578044 - Show all commits

View File

@ -1,4 +1,15 @@
export function fibonacci(value) {
// implementar logica aqui
let n1 = 0
let n2 = 1
let fibo
for (let i = 1; i <= value; i++) {
fibo = n1 + n2;
n1 = n2;
n2 = fibo;
};
return n1
}