C++ question, computer science homework help

C++ question, computer science homework help

Question 3: (2 pt)
Fibonacci numbers are numbers in sequence following an integer sequence define by this formula:
Fn = Fn-1 + Fn-2
With F0 = 0 and F1 = 1
Example: 0, 1, 1, 2, 3, 5, 8, etc.
Write a program that first stores the initial Fibonacci numbers F0  and F1  in an array of size 10 at index 0 and 1, respectively, then computes and stores the remaining Fibonacci numbers F2 to F9 in the same array. Then print all elements of the arrays to the console as:
The 10 first Fibonacci numbers are: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34;

"You need a similar assignment done from scratch? Our qualified writers will help you with a guaranteed AI-free & plagiarism-free A+ quality paper, Confidentiality, Timely delivery & Livechat/phone Support.


Discount Code: CIPD30



Click ORDER NOW..

order custom paper