Why it is important to stop loop?
Answers
Answered by
3
It doesn't.
You need to use break and continue only if your statements are not enough to cover the logic that you want to apply.
It doesn't mean that it is necessarily bad but sometimes, it is overused and the code could be simpler without it.
You need to use break and continue only if your statements are not enough to cover the logic that you want to apply.
It doesn't mean that it is necessarily bad but sometimes, it is overused and the code could be simpler without it.
Answered by
1
when your logic does not satisfies with the computer runtime then you should stop the loop by debugging or else by other methods.
Similar questions