var
a: array[0..20] of integer;
i, n, Sum: integer;
begin
n := 10;
Sum := 0;
Randomize;
for i := 1 to n do
a[i] := Random(101);
Sum := Sum + a[i];
Write(a[i], ' ');
end;
Writeln;
Write('Average = ', Sum / n)
end.
var
a: array[0..20] of integer;
i, n, Sum: integer;
begin
n := 10;
Sum := 0;
Randomize;
for i := 1 to n do
begin
a[i] := Random(101);
Sum := Sum + a[i];
Write(a[i], ' ');
end;
Writeln;
Write('Average = ', Sum / n)
end.