Loop statements allow you to execute one or more lines of code repetitively. When we know that we must execute a statement a specific number of times then we use the loop statement. The loop statement uses a counter variable that increases in value during each repetition of the loop.
Syntax
loop iterationvariablename noofiterations
statement1;
statement2;
.
.
.
repeat iterationvariablename noofiterations + 1
Back