Using a ‘break’ we can leave the loop even if the condition is not fulfilled. It can be used to end an infinite loop, or to force its end before its natural end.
} /* Once the break is encountered it immediately goes to the next line after the loop. */
cout<<"\nEnd of loop"; // ←——