#include // The C++ input and output definitions. void main(void) { // declarations: int i; // Declare an integer storage location for general use // executable statements: // Try some simple operations: cout << "3 + 4 = " << 3 + 4 << endl; cout << "3 - 4 = " << 3 - 4 << endl; cout << "3 * 4 = " << 3 * 4 << endl; cout << "3 / 4 = " << 3 / 4 << endl; cout << "3./ 4.= " << 3./ 4.<< endl; cout << "Enter any integer to continue: "; cin >> i; // Incrementing: i = 3; cout << "After i=3;, i = " << i << endl; i = i+1; cout << "After i = i+1;, i = " << i << endl; i++; cout << "After i++;, i = " << i << endl; cout << "i++ ++i: "; cout << i++; cout << ++i << endl; cout << "Enter any integer to continue: "; cin >> i; // Precedence: cout << "(2 + 3) * 4 = " << (2 + 3) * 4 << endl; cout << "2 + (3 * 4) = " << 2 + (3 * 4) << endl; cout << "2 + 3 * 4 = " << 2 + 3 * 4 << endl; cout << "10 / 5 * 2 = " << 10 / 5 * 2 << endl; }