To exit out of a loop prematurely, you would use the _______ statement.

  • break
  • continue
  • exit
  • return
The break statement is used to exit out of a loop prematurely. When encountered, it terminates the loop's execution and moves to the next statement after the loop.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *