Computer Science, asked by Sahad1055, 5 months ago

Write a java program to accept the value of ‘m’ through console to display a ‘Pythagorean triplet’

Answers

Answered by ItzRiya07
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