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

⟦1edfefdff⟧ TextFile

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

Derivation

└─⟦3702e543b⟧ Bits:30003064 Demoprogrammer A-J til Pascal bog
    └─ ⟦this⟧ »FIBONAC1.PAS« 

TextFile

        PROGRAM fibonac1;
        
          VAR
            i : INTEGER;
          
          FUNCTION fib(n : INTEGER) : INTEGER;
            
            BEGIN
              IF n < 3
                THEN fib := 1
                ELSE fib := fib(n - 1) + fib(n - 2);
            END;
          
          BEGIN
            FOR i := 1 TO 23 DO
              WRITELN('Fib(', i, ') = ', fib(i));
          END.
«eof»