// CS210 F'03 Exam 1 // Question 8 // #include using namespace std; int main(void) { int a(1),b(-3),c(10),d(4),e(2),f(9); cout << (a + b) * (c - d) << endl;// LINE 1 cout << a++ + --b << endl; // LINE 2 cout << c/d << endl; // LINE 3 cout << c%e << endl; // LINE 4 cout << ((f-e)*(d-b))/e << endl; // LINE 5 if(++d > 5 && ++e < 4) f=10; cout << d << " " << e << " " << f << endl; // LINE 6 } // output // -12 // -3 // 2 // 0 // 28 // 5 2 9 // Note: reference is Deitel pg 126