85.0k views
1 vote
You have 2 positive numbers. One number is 5 times the other number. The difference between the two numbers is 844, find the numbers.

User Ramazan
by
7.0k points

1 Answer

4 votes
I put together a quick and simple brute force algorithm, and the two numbers you are looking for are 211 and 1055.

211 * 5 = 1055.
1055 - 211 = 844
User Gabriel G
by
8.0k points