|
|
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 - metrics - download
Length: 640 (0x280)
Types: TextFile
Names: »FAHRENHE.PAS«
└─⟦f983c2ef3⟧ Bits:30004681 Pascal opgaver (Butler)
└─⟦this⟧ »FAHRENHE.PAS«
= 1 TO graense2 DO
IF tab(.i.)
THEN
BEGIN
j := i + i + 1; (* j er et primtal *)
IF j <= graense
THEN WRITE(j : 8);
IF j <= graense3 (* nu slettes de ulige multipla af j - *)
THEN (* det er netop hvert j. element i tab *)
BEGIN
k := i + j; (* tab(.k.) er dem, der skal slettes *)
WHILE k <= graense2 DO
BEGIN
tab(.k.) := FALSE;
k := k + j;
END;
END;
END;