1. Engineering
  2. Computer Science
  3. a fibonacci sequence is composed of elements created by adding...

Question: a fibonacci sequence is composed of elements created by adding...

Question details



A Fibonacci sequence is composed of elements created by adding the two previous elements. The simplest Fibonacci sequence starts with I, I and proceeds as follows: 1,1,2,3.5, 8. 13..... However, a Fibonacci sequence can be created with any two starting numbers (the recursive formula: FFitF-). Prompt the user to enter the first two numbers in a Fibonacci sequence and the total number of elements requested for the sequence. Find the sequence and store it in an array by using a for loop, and report the value comesponding to F 5-
Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution