Cody

Solution 1240480

Submitted on 27 Jul 2017
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
y_correct = 3; assert(isequal(amountinput(1,2,3),y_correct))

ans = 2

Assertion failed.

2   Fail
y_correct = 1; assert(isequal(amountinput(10),y_correct))

ans = 10

Assertion failed.

3   Fail
y_correct = 7; assert(isequal(amountinput(0,7,3,6,2,7,4),y_correct))

ans = 4.1429

Assertion failed.

Suggested Problems

More from this Author12