Question
Write a program (in assembly code 8086) to read three numbers. Each number is between 0 and 9. Then, Divide the first two, then multiply
Write a program (in assembly code 8086) to read three numbers. Each number is between 0 and 9. Then, Divide the first two, then multiply the result by the third number. So if the input is:
4 2 2
The program should do this:
4 / 2 = 2
2 * 2 = 4
It should ONLY display the final result, which is 4, I do not need to see anything else other than the final value. So if I test it with input like:
9 2 3
it should display 12
Another example, if the input is:
9 1 3
the program should display 27
*** Input is always 3 numbers
*** Each input number is 2 bytes long. A space followed by a number. The number is between 0 and 9
*** NO DIVISION BY 0. SO THE SECOND NUMBER CAN NOT BE 0 DO NOT WORRY ABOUT THIS CASE (since we did not take if statement yet)
*** Note that 4 is 2 bytes, because it's space 4, and 2 is two bytes, because it's space 2 and 3 is space followed by 2
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