merge all challenges #1

Merged
Gabriel_Lehmann merged 19 commits from development into master 2022-10-30 04:26:03 +00:00
Showing only changes of commit 2c536af001 - Show all commits

View File

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