===== PascalABC.NET =====
begin
var n := ReadInteger('Число строк?');
for var i := 1 to n do
for var j := 1 to i do
Print(i);
Writeln
end
end.
Объяснение:
var i,j:integer;
for i:=1 to 5 do begin
for j:=1 to 5 do write(j);
Writeln();
end;
===== PascalABC.NET =====
begin
var n := ReadInteger('Число строк?');
for var i := 1 to n do
begin
for var j := 1 to i do
Print(i);
Writeln
end
end.
Объяснение:
var i,j:integer;
begin
for i:=1 to 5 do begin
for j:=1 to 5 do write(j);
Writeln();
end;
end.