There are several ways to specify for how long the process should go on, and how to stop or otherwise alter it. An iterative block may be informally called a loop, and each execution of code in a loop is called an iteration of the loop.
The following diagram shows a simple logical flow of a loop −
All the above statements provide you flexibility and ease of use based on different situations. Let us see them in detail one by one −
No comments:
Post a Comment