program ct;
uses crt;
var A:array[1..100] of integer;
i,n:integer;
S:longint;
begin clrscr;
write('Nhap so n: '); readln(n);
for i:=1 to n do
begin
writeln('Nhap phan tu thu ',i,': '); readln(A[i]);
end;
S:=0;
for i:=1 to n do
begin
if A[i] mod 2=0 then writeln(A[i]:3);
if A[i] mod 2=0 then S:=S+A[i];
end;
writeln('Tong cac so chan la: ',S);
readln;
end.
Học tốt!