код
procedure TForm1.Button1Click(Sender: TObject);
var i,j:integer;
s:integer;
y:double;
begin
StringGrid1.ColCount := 11;
StringGrid1.RowCount := 11;
for i := 1 to StringGrid1.ColCount - 1 do
StringGrid1.Cells[i, 0] := IntToStr(i) ;
for j := 1 to StringGrid1.ColCount - 1 do
StringGrid1.Cells[0, j] := IntToStr(j);
for i:=1 to StringGrid1.ColCount do
for j:=1 to StringGrid1.ColCount do
stringgrid1.Cells[i,j]:=IntToStr(random(50)-25);
end;
begin
s:=0;
for j:=1 to 11 do