The general format for a DO loop in FORTRAN is the following:
Code:
DO 10 I=1,N,INC
. . .
DO SOMETHING
. . .
10 CONTINUE
The control variable (I in this case) is assigned an initial value of 1.
N is the limiting value, so the program will break out of the loop after executing for I = N (basically, if I > N).
INC is the increment value. If INC is not given in a program, it defaults to 1. If you give it the value 5, I will increase by INC each time through the loop.
Hope this helps.