Question: Combined... ( 5 0 points ) Meet the Fibonacci sequence: { 1 , 1 , 2 , 3 , 5 , 8 , 1 3
Combined... points
Meet the Fibonacci sequence: dots To make this sequence: The first two terms of the sequence are
Each following term is equal to the sum of the two prior terms.
The third term is the sum of the first and second terms so for the third term
The fourth term is the sum of the second and third terms so for the fourth term
and so on
Write a program that performs the following:
Prompts the user to enter an integer that is greater than or equal to two. Prints that number of terms from the start of the Fibonacci sequence.
Informs the user of the parity of the last term printed.
For example, if I was prompted and entered a value of then the program should output ODD. If I instead entered a value of then the program should output EVEN.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
