Maths Puzzles…

The aim of this challenge is to write a few algorithms to solve the following Maths puzzles:

In order to solve these puzzles, we will use an iterative approach using nested loops to test all possible combinations of two numbers until we find a match.

You will first look at the code used to solve the following puzzle and then tweak this code to solve the puzzles listed above.
maths-puzzle

Iterative Approach using nested loops…

Here is our code based on nested loops to test all possible pairs of numbers between 0 and 1,000.

unlock-access

Solution...

The solution for this challenge is available to full members!
Find out how to become a member:
➤ Members' Area

Did you like this challenge?

Click on a star to rate it!

Average rating 4.7 / 5. Vote count: 15

No votes so far! Be the first to rate this post.

As you found this challenge interesting...

Follow us on social media!