An early exit from the loop can be accomplished by
Answers
Answered by
0
Explanation:
The purpose the break statement is to break out of a loop early. For example if the following code asks a use input a integer number x. If x is divisible by 5, the break statement is executed and this causes the exit from the loop.
Similar questions