Объяснение:
1) Var
m: array [1..10, 1..10] of integer;
i,j,c:integer;
Begin
For i:=1 to 4 do
For j:=1 to 8 do
read(m[i,j]);
m[i,j]:=m[i,j]*m[i,j];
end;
write(m[i,j],' ');
writeln
end.
2)Var
For i:=1 to 6 do
For j:=1 to 5 do
m[i,j]:=-1*m[i,j];
Объяснение:
1) Var
m: array [1..10, 1..10] of integer;
i,j,c:integer;
Begin
For i:=1 to 4 do
For j:=1 to 8 do
read(m[i,j]);
For i:=1 to 4 do
For j:=1 to 8 do
Begin
m[i,j]:=m[i,j]*m[i,j];
end;
For i:=1 to 4 do
Begin
For j:=1 to 8 do
write(m[i,j],' ');
writeln
end;
end.
2)Var
m: array [1..10, 1..10] of integer;
i,j,c:integer;
Begin
For i:=1 to 6 do
For j:=1 to 5 do
read(m[i,j]);
For i:=1 to 6 do
For j:=1 to 5 do
Begin
m[i,j]:=-1*m[i,j];
end;
For i:=1 to 6 do
Begin
For j:=1 to 5 do
write(m[i,j],' ');
writeln
end;
end.