Problem 2022. Find a Pythagorean triple
Solution Stats
Problem Comments
-
8 Comments
See Problem 1550 Can I make a right triangle ?
Thanks Tanya, have enjoyed these.
if (a==2|a==3)
flag=true;
end
The cases are very limited to make such a code valid
Thanks, enjoyed these.
I really liked this problem!
niceee
brainstormed
any insight into handling the case where one of the side lengths is irrational and rounding error in the approximation causes a false negative to be returned?
for example - Test 7
Solution Comments
Show commentsProblem Recent Solvers4343
Suggested Problems
-
Numbers with prime factors 2, 3 and 5.
464 Solvers
-
605 Solvers
-
Cell Counting: How Many Draws?
1712 Solvers
-
Celsius to Fahrenheit converter
598 Solvers
-
Find the sides of an isosceles triangle when given its area and height from its base to apex
1726 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!