Câu trả lời:
program bt2;
uses crt;
var a:array[1..250] of integer;
i,n: byte;
tong: real;
begin
clrscr;
writeln(' nhap so luong cac phan tu '); readln(n);
for i:=1 to n do
begin
writeln(' nhap gia tri tung phan tu: [',i,']');
readln(a[i]);
end;
tong:=0
for i:=1 to n do if (a[i] > 0) then tong:=tong+a[i];
writeln(' tong cac phan tu khong am la: ',tong:0:0);
readln;
end.