#include using namespace std; // Function integerDivide has two value parameters, dividend and // divisor. The function also has two reference parameters, quotient // and remainder. The function returns the quotient and remainder // from dividing the dividend by the divisor. void integerDivide(int dividend, int divisor, int& quotient, int& remainder); // Function integerDivide has four parameters, each is a pointer to an // int. The first two parameters are pointers to const int // quantities that represent the dividend and divisor, respectively. // The last two parameters are pointers to int quantities where the // quotient and remainder are stored from dividing the dividend by the // divisor. void integerDivide(const int *dividend, const int *divisor, int *quotient, int *remainder); int main() { int dividend, divisor, quotient, remainder; while (cin >> dividend >> divisor) { integerDivide(dividend, divisor, quotient, remainder); cout << "Dividing " << dividend << " by " << divisor << " has a quotient of " << quotient << " and a remainder of " << remainder << endl; integerDivide(÷nd, &divisor, "ient, &remainder); cout << "Dividing " << dividend << " by " << divisor << " has a quotient of " << quotient << " and a remainder of " << remainder << endl << endl; } return 0; }