|  | DataMuseum.dkPresents historical artifacts from the history of: Jet Computer Jet80 | 
This is an automatic "excavation" of a thematic subset of
 See our Wiki for more about Jet Computer Jet80 Excavated with: AutoArchaeologist - Free & Open Source Software. | 
top - metrics - download
    Length: 512 (0x200)
    Types: TextFile
    Names: »FIBONAC1.PAS«
└─⟦092727b26⟧ Bits:30005927 Demoprogrammer til Pascal bog (Jet-80)
    └─⟦this⟧ »FIBONAC1.PAS« 
        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»