Posted by **john** on Saturday, October 31, 2009 at 5:38pm.

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).

- C programming -
**jim**, Saturday, October 31, 2009 at 6:45pm
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?

## Answer This Question

## Related Questions

- math - The sides of a right angled triangle are x,x+1 and x+2.find x,Am not ...
- Algebra - Need help with these-- 21. Find the possible values of a, of the ...
- Mathematical Studies - A right triangle has three sides known to be (x-5) (2x+1...
- geometry - Use Pythagorean Theorem to determine which set of sides can be the ...
- tricky math - consider the right triangle with sides 3,4,5. Notice that the ...
- math - the lengths of the three sides of a right triangle R have odd integer ...
- Math PLZZ - 1. Which set of numbers represents a Pythagorean triple? 6, 9, 12 7...
- Pythagorean Theorem - 7. The following are the lengths of the sides of four ...
- algebra - Use the Pythagorean Theorem to determine if the three numbers could be...
- Pythagorean Theorem - Pythagorean Theorem - david, Thursday, July 15, 2010 at 2:...

More Related Questions