===== PascalABC.NET =====
begin
var (m, n) := ReadInteger2('Число строк и столбцов:');
var a := MatrRandom(m, n, -99, 99);
a.Println(4);
Writeln;
var H := a.Rows
.Select(row -> row.Where(p -> p.IsOdd).Sum)
.ToArray;
H.Println
end.
Copyright © 2025 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
===== PascalABC.NET =====
begin
var (m, n) := ReadInteger2('Число строк и столбцов:');
var a := MatrRandom(m, n, -99, 99);
a.Println(4);
Writeln;
var H := a.Rows
.Select(row -> row.Where(p -> p.IsOdd).Sum)
.ToArray;
H.Println
end.