Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Help?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00044834
Message ID:
00046366
Vues:
47
>>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform