Lời giải :
program hotrotinhoc ;
var a: array[1..32000] of integer ;
i,n : integer ;
begin
write('n='); readln(n);
writeln('nhap gia tri cua cac phan tu');
for i:= 1 to n do
begin
write('a[',i,']='); readln(a[i]);
end;
for i:= 1 to n do
if a[i] mod 2 <> 0 then write(a[i],' ');
readln
end.