Question: The Pythagorean theorem states that the sum of the squares of the sides of a right triangle is equal to the square of the hypotenuse. Thus, for a tight triangle with sides 3 and 4, the length of the hypotenuse is 5. Similarly, a right triangle with sides 5 and 12 has a hypotenuse of l3, and a tight triangle with sides 8 and 15 has a hypotenuse of 17. Triples of integers such as 3, 4, 5, or 5, 12, l3, or 8, 15, 17, which represent the two sides and the hypotenuse of a tight ttiangle, are called Pythagorean triples. There are infinitely many such ttiples, and they all can be generated by the formulas
side1 = m2 - n2
side2 = 2mn
hypotenuse = m2 + n2
where m and n are positive integers and m > n. Write a program that reads values for m and n and then calculates the Pythagorean triple that is generated by these formulas.