Computer Science, asked by dilawarsingh12, 1 year ago

Why it is important to stop loop?

Answers

Answered by stimexpabs
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.
Answered by ak260339p1m1fd
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