The ‘break’ statement can be used to terminate the loop.
Your experience on this site will be improved by allowing cookies. Read Cookie Policy