===== PascalABC.NET =====
begin
var n := ReadInteger('n =');
var a := ArrRandom(n, -35, 35);
a.Println;
var s := 0;
for var i := 0 to a.High do
if i.IsOdd then
s += a[i];
if a[i] mod 5 = 0 then
Print(a[i])
end;
Writeln;
Println('Сумма', s)
end.
===== PascalABC.NET =====
begin
var n := ReadInteger('n =');
var a := ArrRandom(n, -35, 35);
a.Println;
var s := 0;
for var i := 0 to a.High do
begin
if i.IsOdd then
s += a[i];
if a[i] mod 5 = 0 then
Print(a[i])
end;
Writeln;
Println('Сумма', s)
end.