Using loops to calculate values

Write a program that uses a loop to calculate the first 21 values of the Fibonacci number sequence, described by the following formula: Fib(0) = 0, Fib(1) = 1, Fib(n) = Fib(n – 1) + Fib(n – 2).

Your sequence should be: 0 1 1 2 ……. 6765

Use IO.cppPreview the document to display each value on a new line as it is computed. Submit only your asm file.

Reminder: Assume that all volatile registers will change when IO.cpp functions are called.

This question has been answered.

Get Answer