Var
a: array [0..6, 0..6] of integer;
i, j: integer;
begin
for i := 0 to 6 do
begin
for j := 0 to 6 do
begin
a[i, j] := random(21) - 10;
write(a[i, j]:4);
end;
writeln();
end;
for i := 1 to 5 do
for j := 1 to i do
a[i, 6 - j] := 0;
writeln();
for i := 0 to 6 do
begin
for j := 0 to 6 do
write(a[i, j]:4);
writeln();
end;
end.