Question: First question Second question Write a program called fibonacci.cpp that prompts the user for the first two values of a Fibonacci Sequence and then computes
First question
Second question Write a program called fibonacci.cpp that prompts the user for the first two values of a Fibonacci Sequence and then computes the next five numbers of the sequence and prints them along with the original two numbers to the screen (in total seven numbers are printed). Your ith the following prototype: void findNextNumber (int first, int second, int &third); Where first and second are the numbers we currently know in the sequence and third is a reference to a variable that will hold the third number when we compute it. A sample run would look as follows Enter the first value of the sequence: 1 Enter the second value of the sequence: 1 Sequence: 1, 1, 2, 3, 5, 8, 13
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
