#include // The C++ input and output definitions. void main(void) { // declarations: int i; // A general purpose integer // executable statements: // Get integer i from the user: cout << "Enter an integer: "; cin >> i; // Print a message whether i is zero; if (i == 0) cout << "You entered zero.\n"; // inside the if: *sometimes* else cout << "Your number is nonzero.\n"; // inside the if: *sometimes* // Print a final message: cout << "Have a nice day!\n"; // Outside the if: *always* executed }