Asked by john
                Pythagorean Triples.
A right triangle can have sides that are all integers. The set of three integer values for the sides of a right triangle is called a Pythagorean triple. These three sides must satisfy the relationship that the sum of the squares of two of the sides is equal to the square of the hypotenuse.
Find all Pythagorean triples for side1, side2, and the hypotenuse all no larger than 100 using a triple-nested for loop that simply tries all possibilities (“brute-force” computing).
            
            
        A right triangle can have sides that are all integers. The set of three integer values for the sides of a right triangle is called a Pythagorean triple. These three sides must satisfy the relationship that the sum of the squares of two of the sides is equal to the square of the hypotenuse.
Find all Pythagorean triples for side1, side2, and the hypotenuse all no larger than 100 using a triple-nested for loop that simply tries all possibilities (“brute-force” computing).
Answers
                    Answered by
            jim
            
    Ok, so you need to test all a, b, c from 1 through 100 for a*a + b*b = c*c.
What point would you like help with?
    
What point would you like help with?
                                                    There are no AI answers yet. The ability to request AI answers is coming soon!
                                            
                Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.