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

New to MATLAB?

Problem 164. Right and wrong

Created by the cyclist

Given a vector of lengths [a b c], determines whether a triangle with those sides lengths is a right triangle:


[3 4 5] ---> true

[5 12 13] ---> true

[5 5 5] ---> false


Problem Group

Solution Statistics

544 correct solutions 592 incorrect solutions
Last solution submitted on Oct 07, 2015

Problem Comments

Solution Comments