What value will be printed in the following Fortran:

DIMENSION A(20)

DO J=1,9,3

A(J)=3*J-1

END DO

PRINT *, J


3

7

8

9

10


Back to the 201 Homepage or Back to the main exercise reference page