Files
Eremey Valetov e356e79338 Retype a mixed FORTRAN 0 assignment from the left-hand name.
Sections 8.C and 8.D convert each leaf to the left-hand mode and keep a fixed exponent after ** in floating arithmetic. A compound fixed exponent stays mixed outside an assignment, and a subscript is not part of that conversion. A sequence list on PRINT, READ, and PUNCH follows the printed order, with the first clause varying least often, and a constant is allowed only on output. FORTRAN I and II still reject a mixed expression. A later search the same day still found no FORTRAN system tape.
2026-11-12 10:59:27 -05:00

33 lines
834 B
FortranFixed

C FORTRAN 0 SEQUENCE LISTS. STDOUT IS THIS RUNTIME.
DIMENSION IB(3, 2), IC(3, 2), IA(6, 2), IX(3), IY(2, 2, 2)
DO 10 J = 1, 2
DO 10 I = 1, 3
IB(I, J) = 10 * I + J
10 IC(I, J) = 100 + 10 * I + J
DO 20 J = 1, 2
DO 20 I = 1, 6
20 IA(I, J) = 10 * I + J
PRINT (IB(I, J), IC(I, J), J = 1, 2, I = 1, 3)
PRINT (IA(I, J), J = 1, 2, I = 2, 6, 2)
PRINT 2, 3.5
PUNCH 7
IX(1) = 11
IX(2) = 21
IX(3) = 31
I = 9
PRINT (IX(I), I = 1, 2)
PRINT I
I = 5
PRINT (IX(I), I = 3, 2)
PRINT I
K = 0
PRINT (IX(I), I = 3, 1, K - 2)
PRINT I
DO 30 K = 1, 2
DO 30 J = 1, 2
DO 30 I = 1, 2
30 IY(I, J, K) = 100 * I + 10 * J + K
PRINT (IY(I, J, K), K = 1, 2, J = 1, 2, I = 1, 2)
STOP
END