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

50.06% Correct | 49.94% Incorrect
Last solution submitted on Mar 24, 2019

Problem Comments

Solution Comments

Recent Solvers992

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!