Question
TITLE MASM Template INCLUDE Irvine32.inc You are to ask the user for a number from 5 - 20. You will then do the Fibonacci sequence
TITLE MASM Template INCLUDE Irvine32.inc
You are to ask the user for a number from 5 - 20.
You will then do the Fibonacci sequence up to that number.
You may need to research the Fibonacci sequence first.
Example:
Please enter a number from 5 - 20: 10
0, 1, 1, 2, 3, 5, 8, 13, 21, 34
Note, the user typed 10, so it shows the first 10 numbers of the sequence.
The initial numbers the computer should start with are the 0 and the 1 at the start. It will then use a LOOP to complete the rest of the numbers.
Programs which do not have a loop will receive a zero. Hint: loops start with the key word Loop.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started