Given three positive numbers a, b, c, where c is the largest number, return true if the triangle with sides a, b and c is right-angled. Otherwise, return false.
Solution Stats
Problem Comments
7 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers6587
Suggested Problems
-
It dseon't mettar waht oedrr the lrettes in a wrod are.
2160 Solvers
-
Number of 1s in the Binary Representation of a Number
484 Solvers
-
Given a matrix, swap the 2nd & 3rd columns
1280 Solvers
-
Fahrenheit to Celsius converter
611 Solvers
-
Find out sum of all elements of given Matrix
539 Solvers
More from this Author10
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
This is a good problem to refresh basic geometry
The checking should include a random Pythagorean triple (given random natural numbers a>b: a^2-b^2, 2ab, and a^2+b^2 form a Pythagorean triple). For the checking right now, a~=2 passes the tests.
Basic triangle math plus if statements. Great example
This reminds me the old good days ... basic geometry as Sreeram Mohan said :)
Brain clearance
great problem!
i think it is meaningful