Calculating Quotient and Remainder
This program finds the qotient
q
and the remainder
r
when
the nonzero integer
a
is divided by the nonzero integer
b
.
Notice that
a = q * b + r
.
Enter
a
(a nonzero integer):
Enter
b
(a nonzero integer):
Result
The quotient (
q
) is:
The remainder (
r
) is:
Back to the Programs