uses crt;
var a:array[1..100]of integer;
n,i:integer;
begin
clrscr;
write('Nhap n='); readln(n);
for i:=1 to n do
begin
write('A[',i,']='); readln(a[i]);
end;
writeln('Cac phan tu chan la: ');
for i:=1 to n do
if a[i] mod 2=0 then write(a[i]:4);
readln;
end.
Var i,n:integer;
Begin
Write('n = ');readln(n);
For i:=1 to n do
Begin
Write('nhap so thu ',i,' = ');readln(a[i]);
End;
Write('cac so chan la: ');
For i:=1 to n do
If a[i] mod 2 = 0 then write(a[i]:6);
End;
Writeln;
Write('cac so le la: ');
For i:=1 to n do
If a[i] mod 2 <> 0 then write(a[i]:6);
Readln;
End.