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

a) True

b) False

Read Loans and Insurance questions

1 Answer

0 votes
by

Answer:-True

Related questions

0 votes
    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...
asked Feb 24, 2021 in Technology by JackTerrance
0 votes
    function multi(a,b) { var ans = a * b; return ans; } var c = _________ 1. multi(15,2); 2. multi 15, 2; 3. multi();...
asked Feb 26, 2021 in Technology by JackTerrance
0 votes
    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...
asked Dec 29, 2021 in Education by JackTerrance
0 votes
    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...
asked Dec 10, 2021 in Education by JackTerrance
0 votes
    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)...
asked Oct 12, 2021 in Education by JackTerrance
0 votes
    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...
asked Dec 23, 2021 in Education by JackTerrance
0 votes
    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...
asked Nov 28, 2021 in Education by JackTerrance
0 votes
    If A =1,B’=0, C=0 are the input of a NOR GATE what will be the out put Select the correct answer from above options...
asked Dec 13, 2021 in Education by JackTerrance
0 votes
    If A =1,B’=0, C=0 are the input of a NOR GATE what will be the out put. Select the correct answer from above options...
asked Dec 11, 2021 in Education by JackTerrance
0 votes
    If A =1,B’=0, C=0 are the input of a NOR GATE what will be the out put. Select the correct answer from above options...
asked Dec 11, 2021 in Education by JackTerrance
0 votes
    var i = 1; if (function f(){}) { i += typeof f; } x; 1. 1 2. undefined 3. Nan 4. Error...
asked Feb 25, 2021 in Technology by JackTerrance
0 votes
    var i = 1; if (function f(){}) { i += typeof f; } x; 1) 1 2) undefined 3) Nan 4) Error...
asked Oct 9, 2020 in Technology by JackTerrance
0 votes
    Push (10), Push (20), Pop, Push (10), Push (20), POP, Pop, Pop 2x Implement a c program to stack ... 20), Pop & draw final output. Select the correct answer from above options...
asked Dec 5, 2021 in Education by JackTerrance
0 votes
    Push (10), Push (20), Pop, Push (10), Push (20), POP, Pop, Pop 2x Implement a c program to stack ... 20), Pop & draw final output. Select the correct answer from above options...
asked Nov 26, 2021 in Education by JackTerrance
...