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