Question: C++ Pointers and Arrays are NOT allowed. 3. The Fibonacci numbers are defined by the following sequence: fi = 1 f2 = 1 fn =
C++
Pointers and Arrays are NOT allowed.

3. The Fibonacci numbers are defined by the following sequence: fi = 1 f2 = 1 fn = fn-1 + fn-2 Write a program that allows the user to enter an integer n (which is a strictly positive number, i.e. greater than 0) and computes the nth Fibonacci number, fn. The program should exit when the user enter an integer less than or equal to 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
