begin
var a := ArrRandom(10, 1, 10);
a.Println;
a.Where(t->t.IsEven).DefaultIfEmpty.Average.Println;
end.
begin
var a := ArrRandom(10, 1, 10);
a.Println;
a.Where(t->t.IsEven).DefaultIfEmpty.Average.Println;
end.
Пример9 9 10 1 1 6 10 8 2 97.2