DataMuseum.dk

Presents historical artifacts from the history of:

RegneCentralen RC700 "Piccolo"

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

See our Wiki for more about RegneCentralen RC700 "Piccolo"

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦a659aa291⟧ TextFile

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

Derivation

└─⟦3702e543b⟧ Bits:30003064 Demoprogrammer A-J til Pascal bog
    └─ ⟦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»