A loop is a mechanism that enables you to execute the same sequence of the statements repeatedly until a particular condition is met. The statements inside the loop is sometimes called iteration statements.
The loops can be of three types.
The loops can be of three types.
- sequential
- repetition
- section
- Execute a loop a given number of times.
- Execute the loop until a given value exceeds another value.
- Execute a loop until a particular character is entered.
- FOR LOOP
- WHILE LOOP
- DO WHILE LOOP
No comments:
Post a Comment