|
DataMuseum.dkPresents historical artifacts from the history of: RegneCentralen RC700 "Piccolo" |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about RegneCentralen RC700 "Piccolo" Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 384 (0x180) Types: TextFile Names: »HARMONIC.PAS«
└─⟦3702e543b⟧ Bits:30003064 Demoprogrammer A-J til Pascal bog └─⟦this⟧ »HARMONIC.PAS«
PROGRAM harmonic; VAR i : INTEGER; sum, graense : REAL; BEGIN WRITE(CLRHOM); WRITE('Tast grænse: '); READLN(graense); sum := 0; i := 0; WHILE sum < graense DO BEGIN i := i + 1; sum := sum + 1 / i; END; WRITELN('Med ', i, ' led bliver summen: ', sum); END. «eof»