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