# 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; }

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;
}
<!--[if !supportLineBreakNewLine]-->
<!--[endif]-->

a) True

b) False

## Related questions

FIbonacci Series Program function fibonacciSequence(input) { var a=0;b=1;c=0; var array1=[0,1]; for(var i=2;i<= ... array1; } 1 .Above code is Correct 2. Above code is incorrect...
function multi(a,b) { var ans = a * b; return ans; } var c = _________ 1. multi(15,2); 2. multi 15, 2; 3. multi();...
Write a menu-driven program to print the following patterns, where number of rows for the pattern should be the user ... 2 4 8 32 Select the correct answer from above options...
write a program to print fibonacci series . write a program to search an element within the array using binary search Select the correct answer from above options...
Write a program to generate first 20 terms of Fibonacci series and store them in single dimension array. Display ... from the array Select the correct answer from above options...
In a series RLC circuit excited by a voltage 3e^-t u (t), the resistance is equal to 1 Ω and capacitance ... for GATE EC Exam, Network Theory MCQ (Multiple Choice Questions)...
Derive a Canonical POS expression for a Boolean function F, represented by the following truth table : 1 A B C F 0 0 0 ... 1 0 1 1 1 1 Select the correct answer from above options...
a) Derive a Canonical POS expression for a Boolean function F, represented by the following truth table : 1 A B C F 0 0 ... 1 0 1 1 1 1 Select the correct answer from above options...