const n=4;
var
a: array [1..n,1..n] of integer;
i,j,sum:integer;
begin
for i:=1 to n do
for j:=1 to n do
a[i,j]:=random(90)+10;
write(a[i,j]:4);
end;
writeln;
sum:=0;
sum:=sum+a[1,i];
writeln('sum:',sum);
end.
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
const n=4;
var
a: array [1..n,1..n] of integer;
i,j,sum:integer;
begin
for i:=1 to n do
begin
for j:=1 to n do
begin
a[i,j]:=random(90)+10;
write(a[i,j]:4);
end;
writeln;
end;
sum:=0;
for i:=1 to n do
sum:=sum+a[1,i];
writeln;
writeln('sum:',sum);
end.