begin
var n := ReadInteger();
var a := MatrGen(n, n, (i, j)-> (2 shl i) * Ord(j >= i));
a.Println;
end.
Copyright © 2025 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
begin
var n := ReadInteger();
var a := MatrGen(n, n, (i, j)-> (2 shl i) * Ord(j >= i));
a.Println;
end.
var n := ReadInteger();
var a := new integer[n, n];
for var i := 0 to n - 1 do
begin
for var j := 0 to n - 1 do
begin
if i > j then a[i, j] := 0
else a[i, j] := 2 shl i;
Write(a[i, j]:4);
end;
writeln;
end
end.