Use the break statement to immediately jump out of the innermost loop (either a for, while or do...while loop). If the innermost loop is a for loop then the loop action will not be executed before leaving the loop.

Example 7.7. break syntax

for(i = 0; i < j; i++)
    // Make sure we don't go over 10
    if(i > 10)

    // Do stuff