program b1;
uses crt;
var i,n: integer; a:array[1..100] of integer; p:longint;
begin
clrscr;
write('Nhap vao mot day so nguyen:'); readln(n);
for i:=1 to n do
begin
write('a[',i,']='); readln(a[i]);
end;
p:=1;
for i:=1 to n do if a[i] mod 2<>0 then p:=p*a[i];
write('Tich cac so le=',p);
readln;
end.
Tham khảo!