Const
m=4;
n=6;
var
a:array[1..m,1..n] of integer;
i,j:integer;
p:real;
begin
randomize;
for i:=1 to m do
begin
for j:=1 to n do
begin
a[i,j]:=random(46)+30;
Write(a[i,j]:3)
end;
Writeln
end;
Writeln;
for j:=1 to n do
begin;
p:=0;
for i:=1 to m do
p:=p+a[i,j];
Write(p/m:6:2)
end;
Writeln
end.