Question: Write a program that is able to calculate the answer to an integer division problem without using the division, integer division, mod, or multiplication operators.
Write a program that is able to calculate the answer to an integer division problem without using the division, integer division, mod, or multiplication operators. The program should ask the user for two integers, and should compute the answer to firstNum // secondNum. The program should then output the full equation, including the answer, to the user. For these inputs, you can assume the following: The first number may be any positive integer, or zero The second number may be any positive integer (greater than zero)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
