Simple Loop
0
Simple Loop:
- The most basic kind of loop, simple loops, have the syntax.
LOOP
Sequence_of_statements;
Sequence_of_statements;
- The sequence_of_statements will be executed between the keywords “LOOP” and “END LOOP”.
- To keep the loop in finite state the “EXIT” statement is used.
- We can add one with the EXIT statement which has the following syntax:
- EXIT [WHEN Condition];
0 comments: