Delphi 2010 ve Delpi XE2 aynı pc üzerinde kullanımı!
Destek talebi(Lütfen oy verelim!)
Sitemiz üye alımına kapatılmıştır!
! CODEBANK 2012 !
İNDİRMEK&DETAYLI BİLGİ ALMAK İÇİN BURAYI TIKLAYINIZ.
0 Üye ve 1 Ziyaretçi konuyu incelemekte.
procedure TForm1.Button1Click(Sender: TObject);var i,j,n:integer; t,t1:extended; m1x: array [1..100,1..100] of extended;begin n:=strtoint(edit1.text); randomize; for i:=1 to n do for j:=1 to n do m1x[i,j]:=random(100)/100; StringGrid2.RowCount:=n+1; StringGrid2.ColCount:=n+1; for i:=1 to n do for j:=1 to n do StringGrid2.Cells[i,j]:= floattostr(m1x[i,j]); t:=0;t1:=0; for i:=1 to strtoint(edit1.Text) do for j:=1 to strtoint(edit1.Text) do if i=j then t:=t+m1x[i,j] else t1:=t1+m1x[i,j]; t:=t/strtoint(edit1.Text); label3.Caption:='Köşegen ortalaması ='+floattostr(t); label4.Caption:='Köşegen dışı eleman toplamı ='+floattostr(t1);end;