// This file is simpmath.cpp, used for Lab 2, CS 11, Sept. 21, 1999 #include int main() { // Variable declarations and initializations int a = 3; int b = 20; int c = 6; int d = 4; // Now calculate the results. d *= a - 1; c += 2 * a; d = (d - b) / c; c = c * b % a; b /= 2 + a++; // Finally, display the results. cout << "a: " << a << endl; cout << "b: " << b << endl; cout << "c: " << c << endl; cout << "d: " << d << endl; // Exit indicating a lack of errors. return 0; }