Problem 2023. Is this triangle right-angled?
Given any three positive numbers a, b, c, return true if the triangle with sides a, b and c is right-angled. Otherwise, return false.
Solution Stats
Problem Comments
-
5 Comments
Show
2 older comments
Bunny Harlan
on 25 Oct 2017
Passes for True, but Failing when I get to false test?? Not sure at the moment what I could be missing.
pwl
on 31 Jan 2023
I'd like to suggest an additional test case such as
a = sqrt(10); b = 3; c = 1;
Here the result is "true", but some of the existing solutions won't work because of rounding errors.
Adam
on 8 Dec 2023
interesting!
Solution Comments
Show commentsGroup

Project Euler II
- 12 Problems
- 51 Finishers
- Find the longest sequence of 1's in a binary sequence.
- Convert given decimal number to binary number.
- Find out sum and carry of Binary adder
- Binary numbers
- Given an unsigned integer x, find the largest y by rearranging the bits in x
- Bit Reversal
- Relative ratio of "1" in binary number
- Binary code (array)
- Converting binary to decimals
- There are 10 types of people in the world
Problem Recent Solvers6011
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!