DataMuseum.dk

Presents historical artifacts from the history of:

Jet Computer Jet80

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

See our Wiki for more about Jet Computer Jet80

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦a659aa291⟧ TextFile

    Length: 384 (0x180)
    Types: TextFile
    Names: »FIBO.PAS«

Derivation

└─⟦092727b26⟧ Bits:30005927 Demoprogrammer til Pascal bog (Jet-80)
    └─ ⟦this⟧ »FIBO.PAS« 

TextFile

PROGRAM fibo;

  VAR
    a, b, sum : INTEGER;
  
  BEGIN
    WRITE(CLRHOM);
    WRITE('Tast det første tal: '); READLN(a);
    WRITE('Tast det andet tal:  '); READLN(b);
    WRITELN(a : 6);
    WRITELN(b : 6);
    REPEAT
      sum := a + b;
      WRITELN(sum : 6);
      a := b;
      b := sum;
    UNTIL sum > (MAXINT DIV 2);
  END.
«eof»