2)
const n=10;
var a:array[1..n] of integer;
k,i:integer;
begin
writeln('vvedite massiv=');
for i := 1 to n do
readln(a[i]);
k:=0;
for i := 1 to n do
if a[i]>0 then inc(k);
writeln ('k=',k);
readln;
end.
______________
1)
const n=10;
var a:array[1..n] of integer;
s,p,i:integer;
begin
writeln('vvedite massiv=');
for i := 1 to n do
readln(a[i]);
s:=0;
p:=1;
for i := 1 to n do
if (a[i] mod 2=1) and (a[i] mod 3=0) then begin
s:=s+a[i];
p:=p*a[i];
end;
writeln('s=',s, ' p=',p);
readln;
end.