|
|
DataMuseum.dkPresents historical artifacts from the history of: RegneCentralen RC700 "Piccolo" |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about RegneCentralen RC700 "Piccolo" Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 384 (0x180)
Types: TextFile
Names: »FIBO.PAS«
└─⟦3702e543b⟧ Bits:30003064 Demoprogrammer A-J til Pascal bog
└─⟦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»