dim A as double,B as double,C as double
c=text1.text
for a=6500.00 to 7600.00 step 0.01
b=round(c,2)/round(a,2)
if cdbl(b)=cdbl(int(b)) then
debug.print "A=" & A & "|B=" & B & "|C=" & C
end if
next
uses math;
procedure TForm1.Button1Click(Sender: TObject);
var
a,b,c:real;
begin
c:=strtofloat(edit1.Text);
a:=6500.00;
b:=0.00;
while a<=7600.99 do
begin
b:=roundto((c/a),-3);
if b=(c/a) then
break;
a:=roundto(a+0.01,-2);
end;
if a>7600.99 then
showmessage('没找到!')
else
begin
label1.Caption:=floattostr(a);
label2.Caption:=floattostr(b);
end;
end;