Question: In this assignment you will create a simple LMC program to determine if a number evenly divides another one: a ) Input 2 numbers b

In this assignment you will create a simple LMC program to determine if a number evenly divides another one: a) Input 2 numbers
b) If they do not evenly divide, then the program outputs 0 and asks to input two new numbers, and
c) If they evenly divide, then the program outputs the quotient and stops execution.
- If one of the numbers is negative output -1 first and then output the quotient and stop execution

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 Databases Questions!