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

Problem 2022. Find a Pythagorean triple

Created by Tanya Morton

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 .

Tags

Problem Group

Solution Statistics

158 correct solutions 99 incorrect solutions
Last solution submitted on Jul 30, 2014

Problem Comments

Solution Comments