|
|
DataMuseum.dkPresents historical artifacts from the history of: CP/M |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about CP/M Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 384 (0x180)
Types: TextFile
Names: »FIBO.PAS«
└─⟦08ea08c61⟧ Bits:30003924 PolyPascal programmer
└─⟦this⟧ »FIBO.PAS«
└─⟦092727b26⟧ Bits:30005927 Demoprogrammer til Pascal bog (Jet-80)
└─⟦this⟧ »FIBO.PAS«
└─⟦3702e543b⟧ Bits:30003064 Demoprogrammer A-J til Pascal bog
└─⟦this⟧ »FIBO.PAS«
└─⟦f983c2ef3⟧ Bits:30004681 Pascal opgaver (Butler)
└─⟦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»