// Fig. 2.24: fig02_24.cpp // Using the do/while repetition structure. #include using std::cout; using std::endl; // function main begins program execution int main() { int counter = 1; // initialize counter do { cout << counter << " "; // display counter } while ( ++counter <= 10 ); // end do/while cout << endl; return 0; // indicate successful termination } // end function main