uses crt;
var a:array[1..50]of integer;
i,n,t:integer;
begin
clrscr;
write('Nhap n='); readln(n);
for i:=1 to n do
begin
write('A[',i,']='); readln(a[i]);
end;
for i:=1 to n do
if a[i] mod 2<>0 then write(a[i]:4);
writeln;
t:=0;
for i:=1 to n do
if (100<a[i]) and (a[i]<15000) then t:=t+a[i];
writeln(t);
readln;
end.
Đúng 0
Bình luận (0)