//fpc
const
MAX = 20;
var
A: array [1 .. MAX] of byte;
i: byte;
mult: extended;
BEGIN
randomize;
mult := 1;
for i := 1 to MAX do
begin
A[i] := random(10) + 1;
mult := mult * A[i];
end;
write('Произведение эл. массива = ');
writeln(mult:0:0);
END.
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
//fpc
const
MAX = 20;
var
A: array [1 .. MAX] of byte;
i: byte;
mult: extended;
BEGIN
randomize;
mult := 1;
for i := 1 to MAX do
begin
A[i] := random(10) + 1;
mult := mult * A[i];
end;
write('Произведение эл. массива = ');
writeln(mult:0:0);
END.