We learned about loops in previous tutorials. In this tutorial, we will learn to use break and continue statements with the help of examples.
C break
The break statement ends the loop immediately when it is encountered. Its syntax is:
break;The break statement is almost always used with if...else statement inside the loop.





No comments:
Post a Comment