Sunday

September 21, 2014

September 21, 2014

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

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:45pmOk, 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 ...

Geometry - 1. The sides of a triangle have lenghts x, x+4, and 20. Specify those...

math - the lengths of the three sides of a right triangle R have odd integer ...

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

Mathematical Studies - A right triangle has three sides known to be (x-5) (2x+1...

Pythagorean Theorem - 7. The following are the lengths of the sides of four ...

Math...Geometry - Hello, Can someone please tell me if I worked this out correct...

Maths (V. Hard) - Firstly calculate how many Pythagorean Triples there are that ...