-1

Hello guys and girls.

Any idea how to find containing numbers of one specific number. For example number 10:

10 = 9+1
10 = 8+2
10 = 7+3

I tried to do something like ‘random(10)’ but got nowhere with that.

Cheers to all,
marygreen

2
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by marygreen
0

Hi FalmingClaw.

Need to generate them and print them in a memo.

0

Never mind. I did it this way:

begin
C.value:=10;
while num1.value<c.value do
begin
num1.value:=num1.value+1;
num2.value:=c.value-num1.value;
memo1.lines.add((floattostr(num1.value))+'__'+(floattostr(num2.value)));
end;
if (num1.value=c.Value) then
begin
showmessage('Done');
end;
end;
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.