A set of integers a, b, and c is called a Pythagorean triple if
. For example, the integers 3, 4, and 5 form a Pythagorean triple because
To find Pythagorean triples, use the following formula. Let m and n be integers. If
then a, b, and c are a Pythagorean triple. Write a program that prompts the user to enter values for m and n and then outputs the Pythagorean triple corresponding to m and n.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.