0 votes
in JavaScript by
FIbonacci Series Program

function fibonacciSequence(input)

{

var a=0;b=1;c=0;

var array1=[0,1];

for(var i=2;i<=input;i++)

{

c=a+b;

a=b;

b=c;

array1.push(c)

}

return array1;

}

Above code is true ---

Above code is incorrect

1 Answer

0 votes
by
True
by
Above code is true

Related questions

+2 votes
asked Jan 15, 2020 in Agile by Robindeniel
+3 votes
asked Aug 5, 2019 in Agile by sheetalkhandelwal
...