Ответ:
var
i, j, n: byte;
x: array[1..30, 1..30]of integer;
begin
writeln('Введите кол-во строк');
readln(n);
for i := 1 to n do
for j := 1 to i do
x[i, j] := 5;
end;
writeln;
write(x[i, j],' ');
end.
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
var
i, j, n: byte;
x: array[1..30, 1..30]of integer;
begin
writeln('Введите кол-во строк');
readln(n);
for i := 1 to n do
for j := 1 to i do
begin
x[i, j] := 5;
end;
for i := 1 to n do
begin
writeln;
for j := 1 to i do
write(x[i, j],' ');
end;
end.