Skip to content

5.10 Break and Continue

Break statements

  • A break statement in a loop causes the loop to exit immediately.

5%2010%20Break%20and%20Continue%20bbdfee491a12467990927c648096fc26/Untitled.png

Continue statements

  • A continue statement in a loop causes an immediate jump to the while or for loop header statement.

5%2010%20Break%20and%20Continue%20bbdfee491a12467990927c648096fc26/Untitled%201.png