Var i:integer; an:array[1..10] of integer,a:array[1..10] of integer;
begin
randomize;
for i:=1 to 10 do a[i]:=random(100);
for i:=1 to 5 do an[6-i]:=a[i];
for i:=1 to 5 do an[11-i]:=a[i+5];
writeln("Получившийся массив:");
writeln(" ");
for i:=1 to 10 do write(an[i]," ");
end.