unit Unit2;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, jpeg, ExtCtrls;
type
TForm2 = class(TForm)
Label1: TLabel;
Label2: TLabel;
Label3: TLabel;
Label4: TLabel;
Label5: TLabel;
Label6: TLabel;
Label7: TLabel;
Label8: TLabel;
Label9: TLabel;
Label10: TLabel;
Button1: TButton;
Image1: TImage;
procedure FormCreate(Sender: TObject);
procedure Button2Click(Sender: TObject);
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form2: TForm2;
a,b,c,d,e,f,g,h,i,k,x:integer;
implementation
{$R *.dfm}
procedure TForm2.FormCreate(Sender: TObject);
var
x:integer;
begin
x:=0;
repeat
inc(x);
randomize;
a:=random(80)+1;
b:=random(80)+1;
c:=random(80)+1;
d:=random(80)+1;
e:=random(80)+1;
f:=random(80)+1;
g:=random(80)+1;
h:=random(80)+1;
i:=random(80)+1;
k:=random(80)+1;
if a<>b then if a<>c then if a<>d then if a<>e then if a<>f then if a<>g then if a<>h then if a<>i then if a<>k then
if b<>c then if b<>d then if b<>e then if b<>f then if b<>g then if b<>h then if b<>i then if b<>k then
if c<>d then if c<>e then if c<>f then if c<>g then if c<>h then if c<>i then if c<>k then
if d<>e then if d<>f then if d<>g then if d<>h then if d<>i then if d<>k then
if e<>f then if e<>g then if e<>h then if e<>i then if e<>k then
if f<>g then if f<>h then if f<>i then if f<>k then
if g<>h then if g<>i then if g<>k then
if h<>i then if h<>k then
if i<>k then
if 0<a then if 0<b then if 0<c then if 0<d then if 0<e then if 0<f then if 0<g then if 0<h then if 0<i then if 0<k then
begin
if x=1 then
label1.Caption:=inttostr(a)+' '+inttostr(b)+' '+inttostr(c)+' '+inttostr(d)+' '+inttostr(e)+' '+inttostr(f)+' '+inttostr(g)+' '+inttostr(h)+' '+inttostr(i)+' '+inttostr(k);
if x=2 then
label2.Caption:=inttostr(a)+' '+inttostr(b)+' '+inttostr(c)+' '+inttostr(d)+' '+inttostr(e)+' '+inttostr(f)+' '+inttostr(g)+' '+inttostr(h)+' '+inttostr(i)+' '+inttostr(k);
if x=3 then
label3.Caption:=inttostr(a)+' '+inttostr(b)+' '+inttostr(c)+' '+inttostr(d)+' '+inttostr(e)+' '+inttostr(f)+' '+inttostr(g)+' '+inttostr(h)+' '+inttostr(i)+' '+inttostr(k);
if x=4 then
label4.Caption:=inttostr(a)+' '+inttostr(b)+' '+inttostr(c)+' '+inttostr(d)+' '+inttostr(e)+' '+inttostr(f)+' '+inttostr(g)+' '+inttostr(h)+' '+inttostr(i)+' '+inttostr(k);
if x=5 then
label5.Caption:=inttostr(a)+' '+inttostr(b)+' '+inttostr(c)+' '+inttostr(d)+' '+inttostr(e)+' '+inttostr(f)+' '+inttostr(g)+' '+inttostr(h)+' '+inttostr(i)+' '+inttostr(k);
if x=6 then
label6.Caption:=inttostr(a)+' '+inttostr(b)+' '+inttostr(c)+' '+inttostr(d)+' '+inttostr(e)+' '+inttostr(f)+' '+inttostr(g)+' '+inttostr(h)+' '+inttostr(i)+' '+inttostr(k);
if x=7 then
label7.Caption:=inttostr(a)+' '+inttostr(b)+' '+inttostr(c)+' '+inttostr(d)+' '+inttostr(e)+' '+inttostr(f)+' '+inttostr(g)+' '+inttostr(h)+' '+inttostr(i)+' '+inttostr(k);
if x=8 then
label8.Caption:=inttostr(a)+' '+inttostr(b)+' '+inttostr(c)+' '+inttostr(d)+' '+inttostr(e)+' '+inttostr(f)+' '+inttostr(g)+' '+inttostr(h)+' '+inttostr(i)+' '+inttostr(k);
if x=9 then
label9.Caption:=inttostr(a)+' '+inttostr(b)+' '+inttostr(c)+' '+inttostr(d)+' '+inttostr(e)+' '+inttostr(f)+' '+inttostr(g)+' '+inttostr(h)+' '+inttostr(i)+' '+inttostr(k);
end;
until x=14
end;
procedure TForm2.Button2Click(Sender: TObject);
begin
form2.Close;
end;
procedure TForm2.Button1Click(Sender: TObject);
var
x:integer;
begin
x:=0;
repeat
inc(x);
randomize;
a:=random(80)+1;
b:=random(80)+1;
c:=random(80)+1;
d:=random(80)+1;
e:=random(80)+1;
f:=random(80)+1;
g:=random(80)+1;
h:=random(80)+1;
i:=random(80)+1;
k:=random(80)+1;
if a<>b then if a<>c then if a<>d then if a<>e then if a<>f then if a<>g then if a<>h then if a<>i then if a<>k then
if b<>c then if b<>d then if b<>e then if b<>f then if b<>g then if b<>h then if b<>i then if b<>k then
if c<>d then if c<>e then if c<>f then if c<>g then if c<>h then if c<>i then if c<>k then
if d<>e then if d<>f then if d<>g then if d<>h then if d<>i then if d<>k then
if e<>f then if e<>g then if e<>h then if e<>i then if e<>k then
if f<>g then if f<>h then if f<>i then if f<>k then
if g<>h then if g<>i then if g<>k then
if h<>i then if h<>k then
if i<>k then
if 0<a then if 0<b then if 0<c then if 0<d then if 0<e then if 0<f then if 0<g then if 0<h then if 0<i then if 0<k then
begin
if x=1 then
label1.Caption:=inttostr(a)+' '+inttostr(b)+' '+inttostr(c)+' '+inttostr(d)+' '+inttostr(e)+' '+inttostr(f)+' '+inttostr(g)+' '+inttostr(h)+' '+inttostr(i)+' '+inttostr(k);
if x=2 then
label2.Caption:=inttostr(a)+' '+inttostr(b)+' '+inttostr(c)+' '+inttostr(d)+' '+inttostr(e)+' '+inttostr(f)+' '+inttostr(g)+' '+inttostr(h)+' '+inttostr(i)+' '+inttostr(k);
if x=3 then
label3.Caption:=inttostr(a)+' '+inttostr(b)+' '+inttostr(c)+' '+inttostr(d)+' '+inttostr(e)+' '+inttostr(f)+' '+inttostr(g)+' '+inttostr(h)+' '+inttostr(i)+' '+inttostr(k);
if x=4 then
label4.Caption:=inttostr(a)+' '+inttostr(b)+' '+inttostr(c)+' '+inttostr(d)+' '+inttostr(e)+' '+inttostr(f)+' '+inttostr(g)+' '+inttostr(h)+' '+inttostr(i)+' '+inttostr(k);
if x=5 then
label5.Caption:=inttostr(a)+' '+inttostr(b)+' '+inttostr(c)+' '+inttostr(d)+' '+inttostr(e)+' '+inttostr(f)+' '+inttostr(g)+' '+inttostr(h)+' '+inttostr(i)+' '+inttostr(k);
if x=6 then
label6.Caption:=inttostr(a)+' '+inttostr(b)+' '+inttostr(c)+' '+inttostr(d)+' '+inttostr(e)+' '+inttostr(f)+' '+inttostr(g)+' '+inttostr(h)+' '+inttostr(i)+' '+inttostr(k);
if x=7 then
label7.Caption:=inttostr(a)+' '+inttostr(b)+' '+inttostr(c)+' '+inttostr(d)+' '+inttostr(e)+' '+inttostr(f)+' '+inttostr(g)+' '+inttostr(h)+' '+inttostr(i)+' '+inttostr(k);
if x=8 then
label8.Caption:=inttostr(a)+' '+inttostr(b)+' '+inttostr(c)+' '+inttostr(d)+' '+inttostr(e)+' '+inttostr(f)+' '+inttostr(g)+' '+inttostr(h)+' '+inttostr(i)+' '+inttostr(k);
if x=9 then
label9.Caption:=inttostr(a)+' '+inttostr(b)+' '+inttostr(c)+' '+inttostr(d)+' '+inttostr(e)+' '+inttostr(f)+' '+inttostr(g)+' '+inttostr(h)+' '+inttostr(i)+' '+inttostr(k);
end;
until x=14
end;
end.
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, jpeg, ExtCtrls;
type
TForm1 = class(TForm)
Edit1: TEdit;
Edit2: TEdit;
Edit3: TEdit;
Edit4: TEdit;
Edit5: TEdit;
Edit6: TEdit;
Edit7: TEdit;
Edit8: TEdit;
Edit9: TEdit;
Edit10: TEdit;
Label1: TLabel;
Label2: TLabel;
Label3: TLabel;
Label4: TLabel;
Image1: TImage;
procedure Label2Click(Sender: TObject);
procedure FormCreate(Sender: TObject);
procedure Label1Click(Sender: TObject);
procedure Label4Click(Sender: TObject);
procedure Label3Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
a,b,c,d,e,f,g,h,i,k,x:integer;
implementation
{$R *.dfm}
uses Unit2;
procedure TForm1.Label1Click(Sender: TObject);
begin
randomize;
a:=random(80)+1;
b:=random(80)+1;
c:=random(80)+1;
d:=random(80)+1;
e:=random(80)+1;
f:=random(80)+1;
g:=random(80)+1;
h:=random(80)+1;
i:=random(80)+1;
k:=random(80)+1;
if a<>b then if a<>c then if a<>d then if a<>e then if a<>f then if a<>g then if a<>h then if a<>i then if a<>k then
if b<>c then if b<>d then if b<>e then if b<>f then if b<>g then if b<>h then if b<>i then if b<>k then
if c<>d then if c<>e then if c<>f then if c<>g then if c<>h then if c<>i then if c<>k then
if d<>e then if d<>f then if d<>g then if d<>h then if d<>i then if d<>k then
if e<>f then if e<>g then if e<>h then if e<>i then if e<>k then
if f<>g then if f<>h then if f<>i then if f<>k then
if g<>h then if g<>i then if g<>k then
if h<>i then if h<>k then
if i<>k then
if 0<a then if 0<b then if 0<c then if 0<d then if 0<e then if 0<f then if 0<g then if 0<h then if 0<i then if 0<k then
begin
edit1.Text:=inttostr(a);
edit2.Text:=inttostr(b);
edit3.Text:=inttostr(c);
edit4.Text:=inttostr(d);
edit5.Text:=inttostr(e);
edit6.Text:=inttostr(f);
edit7.Text:=inttostr(g);
edit8.Text:=inttostr(h);
edit9.Text:=inttostr(i);
edit10.Text:=inttostr(k);
end;
end;
procedure TForm1.Label2Click(Sender: TObject);
begin
form1.Close;
end;
procedure TForm1.FormCreate(Sender: TObject);
begin
randomize;
a:=random(80)+1;
b:=random(80)+1;
c:=random(80)+1;
d:=random(80)+1;
e:=random(80)+1;
f:=random(80)+1;
g:=random(80)+1;
h:=random(80)+1;
i:=random(80)+1;
k:=random(80)+1;
if a<>b then if a<>c then if a<>d then if a<>e then if a<>f then if a<>g then if a<>h then if a<>i then if a<>k then
if b<>c then if b<>d then if b<>e then if b<>f then if b<>g then if b<>h then if b<>i then if b<>k then
if c<>d then if c<>e then if c<>f then if c<>g then if c<>h then if c<>i then if c<>k then
if d<>e then if d<>f then if d<>g then if d<>h then if d<>i then if d<>k then
if e<>f then if e<>g then if e<>h then if e<>i then if e<>k then
if f<>g then if f<>h then if f<>i then if f<>k then
if g<>h then if g<>i then if g<>k then
if h<>i then if h<>k then
if i<>k then
if 0<a then if 0<b then if 0<c then if 0<d then if 0<e then if 0<f then if 0<g then if 0<h then if 0<i then if 0<k then
begin
edit1.Text:=inttostr(a);
edit2.Text:=inttostr(b);
edit3.Text:=inttostr(c);
edit4.Text:=inttostr(d);
edit5.Text:=inttostr(e);
edit6.Text:=inttostr(f);
edit7.Text:=inttostr(g);
edit8.Text:=inttostr(h);
edit9.Text:=inttostr(i);
edit10.Text:=inttostr(k);
end;
end;
procedure TForm1.Label4Click(Sender: TObject);
begin
a:=strtoint(edit1.Text);
b:=strtoint(edit2.Text);
c:=strtoint(edit3.Text);
d:=strtoint(edit4.Text);
e:=strtoint(edit5.Text);
f:=strtoint(edit6.Text);
g:=strtoint(edit7.Text);
h:=strtoint(edit8.Text);
i:=strtoint(edit9.Text);
k:=strtoint(edit10.Text);
if a<b then begin x:=a; a:=b; b:=x; end;
if a<c then begin x:=a; a:=c; c:=x; end;
if a<d then begin x:=a; a:=d; d:=x; end;
if a<e then begin x:=a; a:=e; e:=x; end;
if a<f then begin x:=a; a:=f; f:=x; end;
if a<g then begin x:=a; a:=g; g:=x; end;
if a<h then begin x:=a; a:=h; h:=x; end;
if a<i then begin x:=a; a:=i; i:=x; end;
if a<k then begin x:=a; a:=k; k:=x; end;
if b<c then begin x:=b; b:=c; c:=x; end;
if b<d then begin x:=b; b:=d; d:=x; end;
if b<e then begin x:=b; b:=e; e:=x; end;
if b<f then begin x:=b; b:=f; f:=x; end;
if b<g then begin x:=b; b:=g; g:=x; end;
if b<h then begin x:=b; b:=h; h:=x; end;
if b<i then begin x:=b; b:=i; i:=x; end;
if b<k then begin x:=b; b:=k; k:=x; end;
if c<d then begin x:=c; c:=d; d:=x; end;
if c<e then begin x:=c; c:=e; e:=x; end;
if c<f then begin x:=c; c:=f; f:=x; end;
if c<g then begin x:=c; c:=g; g:=x; end;
if c<h then begin x:=c; c:=h; h:=x; end;
if c<i then begin x:=c; c:=i; i:=x; end;
if c<k then begin x:=c; c:=k; k:=x; end;
if d<e then begin x:=d; d:=e; e:=x; end;
if d<f then begin x:=d; d:=f; f:=x; end;
if d<g then begin x:=d; d:=g; g:=x; end;
if d<h then begin x:=d; d:=h; h:=x; end;
if d<i then begin x:=d; d:=i; i:=x; end;
if d<k then begin x:=d; d:=k; k:=x; end;
if e<f then begin x:=e; e:=f; f:=x; end;
if e<g then begin x:=e; e:=g; g:=x; end;
if e<h then begin x:=e; e:=h; h:=x; end;
if e<i then begin x:=e; e:=i; i:=x; end;
if e<k then begin x:=e; e:=k; k:=x; end;
if f<g then begin x:=f; f:=g; g:=x; end;
if f<h then begin x:=f; f:=h; h:=x; end;
if f<i then begin x:=f; f:=i; i:=x; end;
if f<k then begin x:=f; f:=k; k:=x; end;
if g<h then begin x:=g; g:=h; h:=x; end;
if g<i then begin x:=g; g:=i; i:=x; end;
if g<k then begin x:=g; g:=k; k:=x; end;
if h<i then begin x:=h; h:=i; i:=x; end;
if h<k then begin x:=h; h:=k; k:=x; end;
if i<k then begin x:=i; i:=k; k:=x; end;
begin
edit1.Text:=inttostr(k);
edit2.Text:=inttostr(i);
edit3.Text:=inttostr(h);
edit4.Text:=inttostr(g);
edit5.Text:=inttostr(f);
edit6.Text:=inttostr(e);
edit7.Text:=inttostr(d);
edit8.Text:=inttostr(c);
edit9.Text:=inttostr(b);
edit10.Text:=inttostr(a);
end;
end;
procedure TForm1.Label3Click(Sender: TObject);
begin
form2.Show;
end;
end.


TUĞGENERAL



Alıntı ile Cevapla
Bu Konuyu Paylaşın !