// Fig. 2.24: fig02_24.cpp // Using the do/while repetition structure #include int main() { int counter = 1; do { cout << counter << " "; } while ( ++counter <= 10 ); cout << endl; return 0; }