A few examples of different loops,
loopy: DO i = 1, 30, 2 ... ! i is 1,3,5,7,...,29 ... ! 15 iterations END DO loopy
DO j = 30, 1, -2 ... ! j is 30,28,26,...,2 ... ! 15 iterations END DO
DO k = 30, 1, 2 ... ! 0 iterations ... ! loop skipped END DO
DO l = 1,30 ... ! i = 1,2,3,...,30 ... ! 30 iterations END DO
For more information, click here