Write a java program to accept the value of ‘m’ through console to display a ‘Pythagorean triplet’
Answers
Answered by
1
Answer:
generate all the Pythagorean triplets from m to n. The value of m and n are entered by the user, and m < n. A Pythagorean triple has three positive integers (a, b, c) such that a2 + b2 = c2. Make sure that the values of m and n are positive.
Similar questions