Saturday, September 12, 2015

Exercise 2: Phytagorean Triples

Previous Exercise    Course Outline    Next Exercise

Phytagorean triples are three numbers in which the sum of the squares of the two is equal to the square of the other one. Example is 3, 4, and 5, where in 9 + 16 = 25.

Problem:

Find out all the Phytagorean triples in which all elements are less than the given user input.





Previous Exercise    Course Outline    Next Exercise

No comments:

Post a Comment