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