223k views
2 votes
It's possible to __________ out of a loop if the user has entered an incorrect value that would cause an error or a problem within the loop, or if the user has entered a required response end the program can continue without further iterations of the loop.

User EdH
by
3.4k points

1 Answer

5 votes

Answer:

The answer is Break

Step-by-step explanation:

When break statement is occurred then, it immediately exits from the loop and executed the statement after the loop without raising any kind of error.

The situation after entering of a value by a user

  • If the user entered incorrect value then it will exit from the loop.
  • If the user entered correct input value, then it will run the loop for the further values.

User Mark Pattison
by
3.1k points