Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
FIbonacci Series Program
Home
JavaScript
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
Your comment on this answer:
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Related questions
0
votes
Q: How to Calculate Fibonacci Series in C
asked
Nov 25, 2020
in
C Plus Plus
by
SakshiSharma
#fibonacci-series-in-c
#c-fibonacci-series
+1
vote
Q: Write a program to display the Fibonacci sequence in Python?
asked
May 17, 2020
in
Python
by
sharadyadav1986
#python-fibonacci-sequence
Python-questions-answers
0
votes
Q: why is the modified fibonacci sequence used
asked
Mar 13, 2020
in
Agile
by
yourell
0
votes
Q: what is an example of a modified fibonacci sequence
asked
Mar 13, 2020
in
Agile
by
yourell
+2
votes
Q: You have been asked to estimate the story points for a particular story using the Fibonacci sequence.
asked
Jan 15, 2020
in
Agile
by
Robindeniel
#agile-fibanocci
+1
vote
Q: What is an example of a modified Fibonacci sequence?
asked
Dec 26, 2019
in
Agile
by
srikanth
+1
vote
Q: Why is the modified Fibonacci sequence used when estimating?
asked
Dec 26, 2019
in
Agile
by
srikanth
0
votes
Q: Why is the modified Fibonacci sequence used when estimating?
asked
Nov 6, 2019
in
Agile
by
sachatouille
0
votes
Q: fibonacci sequence java
asked
Sep 3, 2019
in
JAVA
by
Robin
java
Java-questions-answers
+3
votes
Q: Why is the modified Fibonacci sequence used when estimating?
asked
Aug 5, 2019
in
Agile
by
sheetalkhandelwal
#agile-development-methodology
#scaled-agile-framework
#agile-training
#agile
#safe-agile
definition
#agile-methodologies
#agile-vs-scrum
#agile-process
#agile-software
#agile-development
#agile-methodology
#scaled-agile
#what-is-safe
#safe-methodology
...