Break statement is usually used to terminate a case in the switch statement. Break statement in loops to instantly terminates the loop and program control goes to the next statement after the loop.
If the break statement is used in nested loops (i.e., loop within another loop), the break statement will end the execution of the inner loop and Program control goes back to the outer loop.
void main ()
cout<<"Line "<<i<<" is executed\n";
cout<<"break statement is exected";
Line - 1 is executed
break statement is exected
Line - 5 skip the iteration