Lời giải :
program hotrotinhoc;
var a: array[1..32000] of integer ;
i,n,tong : integer;
begin
write('N='); readln(n);
for i:= 1 to n do
begin
write('a[',i,']='); readln(a[i]);
end;
tong:=0;
for i:= 1 to n do
if a[i] mod 2=0 then tong:=tong+a[i];
write(tong);
readln
end.