program Average;
vararr: array[1..5] of Integer;i, sum: Integer;average: Real;
beginRandomize;
sum := 0;
for i := 1 to 5 dobeginarr[i] := Random(101);sum := sum + arr[i];Write(arr[i], ' ');end;
average := sum / 5;
Writeln;Writeln('Среднее арифметическое: ', average:0:3);end.
program Average;
var
arr: array[1..5] of Integer;
i, sum: Integer;
average: Real;
begin
Randomize;
sum := 0;
for i := 1 to 5 do
begin
arr[i] := Random(101);
sum := sum + arr[i];
Write(arr[i], ' ');
end;
average := sum / 5;
Writeln;
Writeln('Среднее арифметическое: ', average:0:3);
end.