Question: Write and run a countdown program in LMC. This program should read in a positive integer N and countdown to 0. For example, - If
Write and run a countdown program in LMC. This program should read in a positive integer N and countdown to 0. For example,
- If the input is 5, the output should be 5, 4, 3, 2, 1, 0.
- If the input is 0, the output should be 0.
You do not have to check for negative input numbers.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
