// 9/1/06 #include using namespace std; int main() { // extract length and width cout << " Test the behavior of the assignment operator *= using the statement: "; cout << endl; // cout << " result = a + b/c; " << endl; // cout << " result *= x + y; " << endl; // cout << "Enter a and b and c: "; cout << "Enter x and y: "; // int a, c; // float b, result; int x; int y; cin >> x >> y; int result; // cin >> a >> b >> c ; cout << "Enter initial value for result: "; cin >> result; // execute *= operation // result = a + b/c; result *= x + y; // cout << "result = " << a << " + " << b << " / " << c << " is: " << result << endl; cout << "result = " << x << " + " << y << " is: " << result << endl; return 0; }