Program massiv;
const N=40;
var i : integer;
kon2:array[1..N]of integer;
kon1:array[1..N]of integer;
begin
writeln('изначальный массив');
randomize;
for i:=1 to N do
kon1[i]:=random(51)-10;
for i:=1 to N do
write(kon1[i],' ');
writeln;
writeln('исходный массив');
for i:=1 to N do
begin
kon2[i]:=kon1[i]*kon1[N];
write(kon2[i],' ');
end;
readln;
end.