Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Help?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00044834
Message ID:
00046366
Views:
42
>>Barbara...change of subject to your gaming side...
>>
>>Find 3, three digit numbers such that the sum of the first two yeilds the third, and all three numbers have the same digits.
>>For example 213+132=312 (of course it doesnt). There are no tricks, all normal addition rules apply...
>>
>>Have fun,
>>Larry //:^)
>
>Thanks, Larry. I see everyone else has been having fun with it too. I did it with 2 for-loops with manual permutations on the digits, since I was too lazy to figure out a cool algorithm for only 6 items.
>
>Good fun.
>
Indeed...While I was waiting on a download, I enhanced my 6 FOR loop (I know, it's a metaphorical elephant gun!) program to find the similar set of all 4-digit numbers. This program took a bit longer to run (s), but it came up with 29 solutions...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Reply
Map
View

Click here to load this message in the networking platform