PascalABC.Net
begin
var a := ArrRandom(10, 10, 1000);
Println('Исходный массив:', a);
Println('Сумма: ', (a.Where(x -> x mod 3 = 0).Max) + (a.Where(x -> x mod 10 = 7).Min));
end.
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
PascalABC.Net
begin
var a := ArrRandom(10, 10, 1000);
Println('Исходный массив:', a);
Println('Сумма: ', (a.Where(x -> x mod 3 = 0).Max) + (a.Where(x -> x mod 10 = 7).Min));
end.