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.
23 lines
460 B
FortranFixed
23 lines
460 B
FortranFixed
C FORTRAN 0 SECTIONS 8.C AND 8.D. STDOUT IS THIS RUNTIME.
|
|
DIMENSION X(2)
|
|
A = 5 / 2
|
|
B = 5 / 2.0
|
|
C = 1.5
|
|
I = C + 0.5
|
|
J = 5 * C
|
|
D = 2.5
|
|
K = 2
|
|
E = D ** K
|
|
L = D ** K + 1
|
|
M = SQRTF(4.0) + 1
|
|
N = D ** (K + 0)
|
|
IP = D ** (K)
|
|
IQ = SQRTF(2.25) * 2
|
|
X(1) = 1.5
|
|
X(2) = 2.5
|
|
IS = 1
|
|
IR = X(IS) * 2
|
|
PRINT A, B, I, J, E, L, M, N, IP, IQ, IR
|
|
STOP
|
|
END
|