Pascal
var
i, n: Integer;
a:array of BigInteger;
begin
write('Введите n:');
readln(n);
setlength(a,n);
a[0]:=1;
a[1]:=1;
for i:=2 to n-1 do
a[i]:=a[i-1]+a[i-2];
for i:=0 to n-1 do
write(a[i], ' ');
end.
Pascal
var
i, n: Integer;
a:array of BigInteger;
begin
write('Введите n:');
readln(n);
setlength(a,n);
a[0]:=1;
a[1]:=1;
for i:=2 to n-1 do
a[i]:=a[i-1]+a[i-2];
for i:=0 to n-1 do
write(a[i], ' ');
end.