Question: The Fibonacci sequence is 0, 1, 1, 2, 3, 5, 8, 13, with the first two terms are 0 and 1 and each term thereafter

The Fibonacci sequence is 0, 1, 1, 2, 3, 5, 8, 13, with the first two terms are 0 and 1 and each term thereafter is the sum of the two preceding terms i.e., Fib[n] = Fib[n-1] + Fib[n-2] a. Using this information, write a C++ program that calculates the n numbers in a Fibonacci sequence, where the user enters n in the program interactively. For example, if n=7, the program should displays all the numbers from 0 to 8, in an output file a. Draw a detailed flow chart for this program in the necessary inputs, outputs and the al dictating algorithm you used. The flow chart should be included as document file along with your program listing (source code)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
