Code must be in C++ please. GIVE FRESH NEW CODE, NOT A COPY and
PASTE from another post. Please display the result on the screen.
thank you
Write a recursive function that uses subtraction to do
integer division. The function has two parameters - the
dividend and the divisor. You may assume that both numbers
are positive integers. The function returns the quotient and
remainder as reference parameters.
e.g.
23 : 7 = quotient 3 remainder 2
123 -7= 16
2 16-7 = 6
3 9- 7
=
2