Cody

Problem 43294. Can we make a triangle?

Solution 3043939

Submitted on 3 Oct 2020 by ivan fernandez
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
assert(isequal(Is_Triangle(3,4,6),true))

sides = 3 4 6 sides = 3 4 6 flag = logical 1

2   Pass
assert(isequal(Is_Triangle(6,4,3),true))

sides = 6 4 3 sides = 3 4 6 flag = logical 1

3   Pass
assert(isequal(Is_Triangle(3,7,4),false))

sides = 3 7 4 sides = 3 4 7 flag = logical 0

4   Pass
assert(isequal(Is_Triangle(4,3,7),false))

sides = 4 3 7 sides = 3 4 7 flag = logical 0

5   Pass
assert(isequal(Is_Triangle(3,3,4),true))

sides = 3 3 4 sides = 3 3 4 flag = logical 1

Suggested Problems

More from this Author2

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!