const n=2;
var
a,b,c,d,ma: array [1..n,1..n] of integer;
i,j,k: integer;
begin
randomize;
writeln (' Matrix A;');
for i:=1 to n do
begin
writeln;
for j:=1 to n do
begin
a[i,j]:=random(10);
write (a[i,j]:4);
end;
end;
writeln;
writeln ('Matrix C;');
for i:=1 to n do
begin
writeln;
for j:=1 to n do
begin
c[i,j]:=random(10);
write (c[i,j]:4);
end;
end;
writeln;
writeln ('Matrix B');
for i:=1 to n do
begin
writeln;
for j:=1 to n do
begin
b[i,j]:=a[i,j]+c[i,j];
write (b[i,j]:4);
end;
end;
writeln;