what is loop
Brief note on looping
what is loop?
It is a process of executing one or more statement or a set
of statements repeatedly until some specific condition is specified.
Looping or iteration involves four clear cut steps,
initialization, condition, execution and updation.
Depending on the placement of condition
- Entry controlled loop: while loop, for loop
- Exit controlled loop: do…while loop.
Depending on the no of times statements are executed
- Finite loop
- Infinite or sentinel loop
No comments