Will you help me with this java application I'm writing?

  • Thread starter Thread starter JOEY!!!!! ???
  • Start date Start date
J

JOEY!!!!! ???

Guest
Can you please kind of explain how to do this. I'm a little confused. What kind of loop would you use for this? Any help is greatly appreciated!

Create a PythagoreanTriple application that displays all pythagorean triples with values of A and B less than 100. A pythagorean triple is a set of three integers that make the equation a^2 + b^2 = c^2 true. This can be determined by finding the square root of a number, truncating it (by casting the double result), and then squaring that result.
(Hint: You will need to generate all possible combinations of A and B and display just those that work.)
 
Back
Top