Find the smallest number such that if its rightmost digit is placed at its left end, the new number so formed is precisely 50% larger than the original number.
(In reply to
re(2): Standard solution by Dale)
This is the results of running the basic program:
285,714 428,571
285,714 * .5 = 428,571 + 285,714
When the program would not produce an results, I would add another register. - Dale
|
Posted by Dale
on 2004-01-31 11:00:38 |