Cody

Solution 2047668

Submitted on 5 Dec 2019 by Jakub Suchý
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))

vec = 3 4 6 ab = 7 c = 6 flag = logical 1

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

vec = 6 4 3 ab = 7 c = 6 flag = logical 1

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

vec = 3 7 4 ab = 7 c = 7 flag = logical 0

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

vec = 4 3 7 ab = 7 c = 7 flag = logical 0

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

vec = 3 3 4 ab = 6 c = 4 flag = logical 1