Cody

Problem 2022. Find a Pythagorean triple

Created by Tanya Morton in Community

Given four different positive numbers, a, b, c and d, provided in increasing order: a < b < c < d, find if any three of them comprise sides of a right-angled triangle. Return true if they do, otherwise return false .

Solution Stats

49.96% Correct | 50.04% Incorrect
Last solution submitted on Mar 26, 2019

Problem Comments

Solution Comments

Recent Solvers996

Suggested Problems

More from this Author10

Tags

Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!