Syntax :
DO [n times]
[statement block]
ENDDO.
It is a unconditional loop statement.This defines a control structure that contains a closed statement block.
Without 'n times' addition,the statement block is repeated until it is exited with one of the loop exiting statements like EXIT.
Otherwise, the loop will execute endlessly.
With 'n times' addition,the number of loop passes can be limited.
Here n is a numeric expression of type i.
The statement block will be executed only if n > 0.
The numeric value that n has at the point of entry into the loop determines the number of times the statement block will be executed.The changes done to the value of n within the loop will not be considered by the control structure
DO [n times]
[statement block]
ENDDO.
It is a unconditional loop statement.This defines a control structure that contains a closed statement block.
Without 'n times' addition,the statement block is repeated until it is exited with one of the loop exiting statements like EXIT.
Otherwise, the loop will execute endlessly.
With 'n times' addition,the number of loop passes can be limited.
Here n is a numeric expression of type i.
The statement block will be executed only if n > 0.
The numeric value that n has at the point of entry into the loop determines the number of times the statement block will be executed.The changes done to the value of n within the loop will not be considered by the control structure