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

⟦6591f9688⟧ TextFile

    Length: 512 (0x200)
    Types: TextFile
    Names: »FIBOFORH.PAS«

Derivation

└─⟦08ea08c61⟧ Bits:30003924 PolyPascal programmer
    └─ ⟦this⟧ »FIBOFORH.PAS« 
└─⟦092727b26⟧ Bits:30005927 Demoprogrammer til Pascal bog (Jet-80)
    └─ ⟦this⟧ »FIBOFORH.PAS« 
└─⟦3702e543b⟧ Bits:30003064 Demoprogrammer A-J til Pascal bog
    └─ ⟦this⟧ »FIBOFORH.PAS« 
└─⟦f983c2ef3⟧ Bits:30004681 Pascal opgaver (Butler)
    └─ ⟦this⟧ »FIBOFORH.PAS« 

TextFile

PROGRAM fiboforh;

  CONST
    antal = 50;
    
  VAR
    a, b, gem, forhold : REAL;
    i : INTEGER;
    
  BEGIN
    WRITE(CLRHOM);
    a := 1;
    b := 1;
    FOR i := 1 TO antal DO
      BEGIN
        gem := b;
        b := a + b;
        a := gem;
        forhold := b / a;
        WRITELN(a : 15 : 0, b : 15 : 0, forhold : 15 : 8,
                SQR(2 * forhold - 1) : 15 : 8);
      END;
  END.
«eof»