DataMuseum.dk

Presents historical artifacts from the history of:

CP/M

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about CP/M

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download

⟦51f703bd6⟧ TextFile

    Length: 640 (0x280)
    Types: TextFile
    Names: »FAHRENHE.PAS«

Derivation

└─⟦f983c2ef3⟧ Bits:30004681 Pascal opgaver (Butler)
    └─⟦this⟧ »FAHRENHE.PAS« 

TextFile

= 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;