Write a program to find the product of abc if there exists exactly one Pythagorean triple for which a + b + c = 1000. Hint: A Pythagorean triple is a set of three positive numbers, a < b < c, for which, a^2 + b^2 = c^2. For example, 3^2 + 4^2 = 5^2


Updated: Nov. 28, 2020 — Training Time: 1 Minute
Overseen by: Archangel Macsika
Topic: Generic - Java Programming

Difficulty: Easy.

Companies who previously asked this: -.

Objective: Write a program to find the product of a Pythagorean triple 'abc' if there exists exactly one Pythagorean triple for which a + b + c = 1000. Hint: A Pythagorean triple is a set of three positive integers, a < b < c, for which, a2 + b2 = c2. For example,
32 + 42 = 52
9 + 16 = 25.

Input: None.

Expected Output: Find out.

Sikademy Solution

Was this training resource helpful?