Question: Write an application that reads two integer numbers, a and b. Calculate q = a / b and r = a % b. Print the
Write an application that reads two integer numbers, a and b. Calculate q = a / b and r = a % b. Print the following on one line (labeling each): a, b, q, r, q * b + r Write this output for all combinations of a and b. Call this class Arithmetic and put it into the q3 package.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
