Printed page 21 lets control leave a nest and return to the same part. --std=1 and --std=2 keep the index live on that path. A jump that stays inside an outer DO is still a transfer into a DO, and --std=0 rejects every entry. The VS Code extension highlights a fixed-form card and runs the open file. There is still no i704 FORTRAN listing.
15 lines
266 B
FortranFixed
15 lines
266 B
FortranFixed
C THE OUTER DO'S OWN RETURN, AFTER THE INNER DO FINISHES.
|
|
K = 0
|
|
DO 50 I = 1, 2
|
|
DO 40 J = 1, 1
|
|
40 CONTINUE
|
|
GO TO 60
|
|
45 K = K + 1
|
|
50 CONTINUE
|
|
GO TO 70
|
|
60 GO TO 45
|
|
70 PRINT 1, K
|
|
1 FORMAT(1H ,I5)
|
|
STOP
|
|
END
|