begin
var k3 := ReadArrInteger('Вводите', ReadInteger('n='));
var (sum, n) := (0, 0);
for var i := 0 to k3.Length - 1 do
if (k3[i] > 0) then
n += 1;
sum += k3[i];
end;
println('Sum =', sum, 'n =', n);
end.
begin
var k3 := ReadArrInteger('Вводите', ReadInteger('n='));
var (sum, n) := (0, 0);
for var i := 0 to k3.Length - 1 do
begin
if (k3[i] > 0) then
begin
n += 1;
sum += k3[i];
end;
end;
println('Sum =', sum, 'n =', n);
end.