Question: Write a program that uses a loop to calculate the first seven values of the Fibonacci number sequence, described by the following formula: Fib(1) =
Write a program that uses a loop to calculate the first seven values of the Fibonacci number sequence, described by the following formula: Fib(1) = 1, Fib(2) = 1, Fib(n) = Fib(n 1) + Fib(n 2). Store the seven numbers in a BYTE array called fibonacci.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
