After this Lab, you will be able to:
A WHILE loop has the following structure:
WHILE CONDITION LOOP STATEMENT 1; STATEMENT 2; … STATEMENT N; END LOOP;
The reserved word WHILE marks the beginning of a loop construct. The word CONDITION is the test condition of the loop that evaluates to TRUE or FALSE. The result of this evaluation determines whether the loop is executed. Statements 1 through N are a sequence of statements that is executed repeatedly. The END LOOP is a reserved phrase that indicates the end of the loop construct.
This flow of the logic is illustrated in Figure 8.3.
Figure 8.3 shows that the test condition is evaluated prior to each iteration of the ...