// assign_test.cpp // test z = y = x & z = y += x #include #include // for getch() void main() { int x, y, z; z = y = x = 2; cout << "z = y = x = 2" << endl; cout << "x = " << x << endl; cout << "y = " << y << endl; cout << "z = " << z << endl; y = x += 2; cout << "y = x += 2" << endl; cout << "x = " << x << endl; cout << "y = " << y << endl; getch(); } // main()