New course! Every coder should learn Generative AI!
Try a free lesson+ 1
Where to provide the break inside the loop?
2 Answers
+ 3
put the break statement when you want to terminate the loop i.e. to go out of the loop and execute the statements after it.
+ 2
where you want to skip block of statements