const n=10;
var a: array[1..n] of integer;
i:integer;
begin
a[1]:=1;
a[2]:=1;
for i:=3 to n do a[i]:=a[i-2]+a[i-1];
for i:=1 to n do write( a[i],' ');
end.
const n=10;
var a: array[1..n] of integer;
i:integer;
begin
a[1]:=1;
a[2]:=1;
for i:=3 to n do a[i]:=a[i-2]+a[i-1];
for i:=1 to n do write( a[i],' ');
end.