// 4
begin
var arr := ArrRandom();
Sort(arr);
arr.Println;
Print('Sum of odd''s elements'' square roots is ',
arr.Where(el -> el.IsOdd).Sum(el -> el.Sqrt));
end.
// 5
begin
var arr := ArrRandom(14);
Sort(arr);
WritelnFormat('Max = {0}, Min = {1}, Max - Min = {2}',
arr.Max, arr.Min, (arr.Max - arr.Min));
end.
// 6
begin
var arr := ArrRandom();
Sort(arr);
arr.Println;
Print('Count = ' + arr.Where(el->(el>20) and (el<50)).Count + newline +<br> 'Product = ' + arr.Where(el->(el>20) and (el<50)).Aggregate(1,(p,x)->p*x));
end.