Write a program for generating and outputting an array of 20 random numbers (from the range from 0 to 1000)

Write a program for generating and outputting an array of 20 random numbers (from the range from 0 to 1000) and calculating their average value.

Var
m: array [1 … 100] of integer;
i, s, n: longint;
a: real;
begin
randomize;
writeln (‘Array:’);
for i: = 1 to 20 do
begin
m [i]: = random (1001);
write (m [i], ”);
s: = s + m [i];
end;
a: = s / 20;
writeln (‘Arithmetic mean:’, a: 2: 3);
end.



One of the components of a person's success in our time is receiving modern high-quality education, mastering the knowledge, skills and abilities necessary for life in society. A person today needs to study almost all his life, mastering everything new and new, acquiring the necessary professional qualities.