Saturday
April 19, 2014

Homework Help: C programming

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

Answer this Question

First Name:
School Subject:
Answer:

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 ...
math - the lengths of the three sides of a right triangle R have odd integer ...
Pythagorean Theorem - 7. The following are the lengths of the sides of four ...
Geometry - 1. The sides of a triangle have lenghts x, x+4, and 20. Specify those...
tricky math - consider the right triangle with sides 3,4,5. Notice that the ...
Algebra - Identify the triangle PQR as isosceles ( two sides equal length) ...
Math (Geometry) - The perimeter of right triangle ABC is equal to the perimeter ...
Math - The sides of a triangle are three consecutive odd integers. The perimeter...
geometry - Rewrite the statement in if-then form. All equilateral triangles have...

Search
Members