program fantscrin;
const n = 10;
var a: array [1..n] of integer;
i,s:integer;
Begin
for i:=1 to n do
a[i]:= random(11)+1;
write(a[i], ' ');
p:=1;
if (i mod 2 <> 0) then
begin
p:=p*a[i];
end;
writeln('');
writeln('Произведение = ',p);
End.
program fantscrin;
const n = 10;
var a: array [1..n] of integer;
i,s:integer;
Begin
for i:=1 to n do
a[i]:= random(11)+1;
for i:=1 to n do
write(a[i], ' ');
p:=1;
for i:=1 to n do
if (i mod 2 <> 0) then
begin
p:=p*a[i];
write(a[i], ' ');
end;
writeln('');
writeln('Произведение = ',p);
End.