The following algorithm is designed to print the beginning of what is known as the Fibonacci sequence.
Question:
Last ← 0;
Current ← 1;
while (Current < 100) do
(print the value assigned to Current;
Temp ← Last;
Last ← Current; and
Current ← Last + Temp)
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Numerical Methods For Engineers
ISBN: 9780071244299
5th Edition
Authors: Steven C. Chapra, Raymond P. Canale
Question Posted: