fibonacchi

 

let number=10
let n1=0
let n2=1
let nextturm
let arr=[]
for (let index = 0index < numberindex++) {
     nextturm=n1+n2
     n1=n2
     n2=nextturm
     arr.push(n1)
}

console.log(arr);

Comments

Popular posts from this blog

D WEB LINK