program fantscrin;
const n = 8;
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 p: =p*a[i];
writeln('');
writeln('произведение = ',p);
end.
program fantscrin;
const n = 8;
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 p: =p*a[i];
writeln('');
writeln('произведение = ',p);
end.