Cody

Solution 1050036

Submitted on 10 Nov 2016
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
N=5;K=3; assert(isequal(num_sum(N,K),5))

n = 5

Output argument "ann" (and maybe others) not assigned during call to "num_sum". Error in TestPoint1 (line 2) assert(isequal(num_sum(N,K),5))

2   Fail
N=7;K=4; assert(isequal(num_sum(N,K),11))

n = 11

Output argument "ann" (and maybe others) not assigned during call to "num_sum". Error in TestPoint2 (line 2) assert(isequal(num_sum(N,K),11))

3   Fail
N=7;K=3; assert(isequal(num_sum(N,K),8))

n = 8

Output argument "ann" (and maybe others) not assigned during call to "num_sum". Error in TestPoint3 (line 2) assert(isequal(num_sum(N,K),8))

4   Fail
N=15;K=6; assert(isequal(num_sum(N,K),110))

n = 110

Output argument "ann" (and maybe others) not assigned during call to "num_sum". Error in TestPoint4 (line 2) assert(isequal(num_sum(N,K),110))

5   Fail
N=20;K=4; assert(isequal(num_sum(N,K),108))

n = 108

Output argument "ann" (and maybe others) not assigned during call to "num_sum". Error in TestPoint5 (line 2) assert(isequal(num_sum(N,K),108))

6   Fail
N=12;K=9; assert(isequal(num_sum(N,K),73))

n = 73

Output argument "ann" (and maybe others) not assigned during call to "num_sum". Error in TestPoint6 (line 2) assert(isequal(num_sum(N,K),73))

7   Fail
N=13;K=3; assert(isequal(num_sum(N,K),21))

n = 21

Output argument "ann" (and maybe others) not assigned during call to "num_sum". Error in TestPoint7 (line 2) assert(isequal(num_sum(N,K),21))

8   Fail
N=12;K=2; assert(isequal(num_sum(N,K),7))

n = 7

Output argument "ann" (and maybe others) not assigned during call to "num_sum". Error in TestPoint8 (line 2) assert(isequal(num_sum(N,K),7))

9   Fail
N=15;K=2; assert(isequal(num_sum(N,K),8))

n = 8

Output argument "ann" (and maybe others) not assigned during call to "num_sum". Error in TestPoint9 (line 2) assert(isequal(num_sum(N,K),8))

### Community Treasure Hunt

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

Start Hunting!