Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Right triangles from a hypotenuse

Status
Not open for further replies.

JonFer

Programmer
Nov 7, 2003
868
US
Given an integer representing the length of the hypotenuse of one or more right triangles, how can you determine the various integer sides that can be drawn for that hypotenuse?

There is a method other than checking every integer less than the hypotenuse.
 
mikrom said:
Formulas for generating Pythagorean triples

Good grief... I looked at that page and my brain peed itself.



Just my 2¢

"What the captain doesn't realize is that we've secretly replaced his Dilithium Crystals with new Folger's Crystals."

--Greg
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top