An nlist can specify an implied DO list for initialization of array elements.
The form of an implied DO list is:
Parameter |
Description |
dlist |
List of array element names and implied DO lists |
iv |
Integer variable, called the implied DO variable |
m1 |
Integer constant expression specifying the initial value of iv |
m2 |
Integer constant expression specifying the limit value of iv |
m3 |
Integer constant expression specifying the increment value of iv. If m3 is omitted, then a default value of 1 is assumed. |
The range of an implied DO loop is dlist. The iteration count for the implied DO is computed from m1, m2, and m3, and it must be positive.
Implied DO lists may also appear within the variables lists on I/O statements PRINT, READ, and WRITE.