Question: Write an LMC program (with instructions): The program will input two integers (ranging from 0 to 999). The program will output 0 if the first
Write an LMC program (with instructions):
The program will input two integers (ranging from 0 to 999). The program will output 0 if the first input is strictly greater than the second number, it will output 1 if the first input is equal to the second input, and output 2 if the first number is strictly less than the second number. The program will run continuously in that it will continue to accept pairs of inputs, provide outputs, and never halt.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
