Program hoc24;
Var i,n: integer;
A: array[1..20] of integer;
I,n : integer;
T: longint;
Begin
Write('Nhap 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=1 then t:=t+a[i];
Write(T);
READLN
END.
uses crt;
var a:array[1..20]of integer;
i,n,t:integer;
begin
clrscr;
n:=20;
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 then
begin
write(a[i]:4);
t:=t+a[i];
end;
writeln;
writeln('Tong cac so le la: ',t);
readln;
end.