Question: Program o Get an integer N ( user input ) o Calculate / output the first N Fibonacci numbers using a subroutine based on the

Program
o Get an integer N (user input)
o Calculate/output the first N Fibonacci numbers using a subroutine based on the "JnS" instruction.
Write a Marie program (Q6.mas)
You should include at least 3 lines of comments in each program.
Hint: You need a loop of subtractions.
Test cases: (grading may use a different value)
- Input: 1
- Output: 0
- Input: 2
- Output:01
- Input: 3
- Output:011
- Input: 4
- Output:0112
- Input: 5
- Output: 01123
PLEASE WRITE THE CODE IN MARIE I DO NOT NEED ANYTHING ELSE!!! ALSO PLEASE FOLLOW THE JNS INSTRUCTION AND THE INSTRUCTIONS OF THE QUESTION VERY CAREFULLY!!! MY LOOP CONTINUES TO GET STUCK AND NOT PRODUCE THE CORRECT OUTPUTS!!!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!