s:=0; n:=0; for i:=1 to 9 do fo j:=i+1 to 10 do begin if a[i,j]<0 then begin s:=s+a[i,j]; inc(n); end; end;
Яндекс