Saturday, 15 June 2013

week 14 day 2

At times you will want to return to the top of a while loop before the entire set of statements in the while loop is executed . The 'continue' statement jumps back to the top of the loop. At other times, you might want to exit the loop before the exit conditions are met. The 'break' statement immediately exits the while loop, and the program resumes after the closing brace.

No comments:

Post a Comment