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 - download

⟦139580f62⟧ TextFile

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

Derivation

└─⟦08ea08c61⟧ Bits:30003924 PolyPascal programmer
    └─ ⟦this⟧ »DIVISOR2.PAS« 

TextFile

      PROGRAM divisor2;
        
        VAR
          tal, gltal, faktor, divisor : INTEGER;
        
        BEGIN
          WRITE(CLRHOM, 'Indtast et helt tal: '); READLN(tal);
          WRITE('Indtast divisor: '); READLN(divisor);
          faktor := 0;
          gltal := tal;
          WHILE tal MOD divisor = 0 DO
            BEGIN
              faktor := faktor +1;
              tal := tal DIV divisor;
            END;
          WRITELN(gltal, ' indeholder faktoren ', divisor, ' ',
                  faktor, ' gange');
        END.
«eof»