|
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 - download
Length: 384 (0x180) Types: TextFile Names: »FIBO.PAS«
└─⟦092727b26⟧ Bits:30005927 Demoprogrammer til Pascal bog (Jet-80) └─ ⟦this⟧ »FIBO.PAS«
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»