// This simple program illustrates the differences between // the break statement and the continue statement #include using namespace std; int main() { for ( int i = 1; i <= 5; i++ ) { if ( i == 3 ) break; cout << i << endl; } cout << "\n\n"; for ( int i = 1; i <=5; i++ ) { if ( i == 3 ) continue; cout << i << endl; } cout << "\n\n"; system( "PAUSE" ); return( 0 ); }