Cody

Solution 1864479

Submitted on 3 Jul 2019
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
a = 0.4331; m = 1.0001; assert(tri(a)>m*0.99)

2   Fail
a = 43.31; m = 10.001; assert(tri(a)<m*1.01)

Assertion failed.

3   Pass
a = 4331; m = 100.01; assert(tri(a)>m*0.99)

4   Fail
a = 4331; m = 100.01; assert(tri(a)<m*1.01)

Assertion failed.

Suggested Problems

More from this Author100