#include // The C++ input and output definitions. void main(void) { // declarations: int i; // A counter // executable statements: // Starting message: cout << "Before the loop.\n"; // Print 5 lines on the screen for (i=1; i<=5; i++) cout << "In the loop for i = " << i << endl; // Print a final message: cout << "After the loop.\n"; }