Wednesday
June 19, 2013

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

Algebra - Need help with these-- 21. Find the possible values of a, of the ...
math - The sides of a right angled triangle are x,x+1 and x+2.find x,Am not ...
Math - The sides of a triangle are three consecutive odd integers. The perimeter...
Maths (V. Hard) - Firstly calculate how many Pythagorean Triples there are that ...
geometry - Rewrite the statement in if-then form. All equilateral triangles have...
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) ...
geometry - Two sides of a triangle measure 8 and 15. How many integer values can...
MATH - two sides of a triangle measure 8 and 15. how many integer values can be ...
Math - How to Generate Pythagorean Triples using an Odd Number 1. Start with an ...

For Further Reading

Search
Members
Community