Cody

Problem 43294. Can we make a triangle?

Solution 3016129

Submitted on 1 Oct 2020 at 13:50
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   Fail
assert(isequal(Is_Triangle(3,4,6),true))

Error in solution: Line: 2 Column: 12 Illegal use of reserved keyword "if".

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

Error in solution: Line: 2 Column: 12 Illegal use of reserved keyword "if".

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

Error in solution: Line: 2 Column: 12 Illegal use of reserved keyword "if".

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

Error in solution: Line: 2 Column: 12 Illegal use of reserved keyword "if".

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

Error in solution: Line: 2 Column: 12 Illegal use of reserved keyword "if".

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!