--std=0 takes the three-number DO, the relational IF, and list PRINT, READ, and PUNCH, and rejects the later statements. The deviations from the Lee copy are written down with the printed page. A one-statement DO now repeats that statement. There is still no i704 FORTRAN listing.
23 lines
490 B
FortranFixed
23 lines
490 B
FortranFixed
C FORTRAN 0 SUBSET OF THE 10 NOVEMBER 1954 REPORT.
|
|
C STDOUT IS THIS RUNTIME. NOT AN I704 LISTING.
|
|
C NOT A CLAIM THAT A 704 RAN FORTRAN 0.
|
|
N = 7
|
|
DO 10, 10, 20 I = 2, 1
|
|
10 N = 1
|
|
20 GO TO 5
|
|
5 N = 0
|
|
GO TO 6
|
|
11 N = N + I
|
|
6 DO 11, 11, 21 I = 1, 3
|
|
21 IF (N = 6) 22, 23
|
|
23 N = 0
|
|
22 K = 0
|
|
DO 12 J = 1, 4
|
|
12 K = K + J
|
|
IF (K > 10) 23, 24
|
|
24 IF (K >= 10) 25, 23
|
|
25 IF (K .GE. 10) 26, 23
|
|
26 PRINT N, K
|
|
STOP
|
|
END
|