Program n1;
Uses CRT;
Const n=40;
Var A:array[1..n] of integer;
i: integer; S:Real;
begin
writeln('Massiv: ');
For i:=1 to n do
begin
a[i]:=random(20);
write(' ',A[i]:2);
end;
writeln;
For i:=1 to n do begin S:=s+A[i]/n; end;
Writeln('Srednee arif.: = ',S);
readln;
end.