FORTRAN 77 NestedDO Loops

Example

DO 10 i = 1,3
DO 5 k = 1,3
.
.
.
5 CONTINUE
10 CONTINUE

The values of i and k for each pass are:

   i        k  
   1        1
   1        2
   1        3    end of pass one for i
   2        1
   2        2
   2        3    end of pass two for i
   3        1
   3        2
   3        3    end of pass three for i