This should print 1 thru 4 and 6 thru 10 what have I mistyped?
Code:#include <iostream> using std::cout; using std::endl; int main() { for ( count = 1; count < 10; count++ ) // loop 10 times { if ( count = 5 ) // if count is 5, break; // skip remaining code in loop cout << count << " "; } // end for cout << "Skipped printing 5" << endl; return 0; // indicate successful termination } // end main