Login
Remember
Register
Ask a Question
FIbonacci Series Program
0
votes
asked
Feb 6, 2020
in
JavaScript
by
rajeshsharma
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
#java-fibonacci
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Feb 7, 2020
by
SakshiSharma
True
commented
Feb 7, 2020
by
SakshiSharma
Above code is true
...