Напишите блок схему
program Array1;
var
a:array[1..10] of integer;
N,i:Integer;
begin
Write('N:');
Readln(N);
for i:=1 to N do a[i]:=i*2-1;
for i:=1 to N do writeln(i,' : ',a[i]);
end.
2)
program Array5;
var
a:array[1..10] of integer;
N,i:Integer;
begin
Write('N:');
Readln(N);
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 writeln(i,' : ',a[i]);
end.
3)
program Array10;
var
a:array[1..10] of integer;
N,i:Integer;
begin
Write('N:');
Readln(N);
for i:=1 to N do
begin
write(i,' :');
readln(a[i]);
end;
for i:=1 to N do
if i mod 2 = 0 then writeln(i,' : ',a[i]);
for i:=N downto 1 do
if i mod 2 <> 0 then writeln(i,' : ',a[i]);
end.
4)
program Array15;
var
a:array[1..10] of integer;
N,i:Integer;
begin
Write('N:');
Readln(N);
for i:=1 to N do
begin
write(i,' :');
readln(a[i]);
end;
i:=1;
While (i<=N) do begin writeln(i,' : ',a[i]); i:=i+2; end; i:=(N div 2)*2; While (i>=1) do
begin
writeln(i,' : ',a[i]);
i:=i-2;
end;
end.