|
DataMuseum.dkPresents historical artifacts from the history of: CP/M |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about CP/M Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - download
Length: 640 (0x280) Types: TextFile Names: »TABEL.PAS«
└─⟦08ea08c61⟧ Bits:30003924 PolyPascal programmer └─ ⟦this⟧ »TABEL.PAS«
PROGRAM tabel; CONST start = 1.0; slut = 3.0; spring = 0.1; VAR x : REAL; i : INTEGER; BEGIN WRITE(CLRHOM); WRITELN('x' : 10, 'x▶92◀(1/2)' : 10, 'x▶92◀(1/3)' : 10, 'x▶92◀2' : 10, 'x▶92◀3' : 10); x := start; i := 1; REPEAT IF i MOD 5 = 1 THEN WRITELN; WRITELN(x : 10 : 5, SQRT(x) : 10 : 5, EXP(LN(x) / 3) : 10 : 5, SQR(x) : 10 : 5, SQR(x) * x : 10 : 5); x := x + spring; i := i + 1; UNTIL x > slut; END. «eof»