Cody

Solution 1920578

Submitted on 3 Sep 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   Fail
t1=1; r=1; n=7; y_correct = 7; assert(isequal(your_fcn_name(t1,r,n),y_correct))

summa = 2 summa = 3 summa = 4 summa = 5 summa = 6 summa = 7 summa = 8

Assertion failed.

2   Fail
t1=10; r=10; n=5; y_correct = 111110; assert(isequal(your_fcn_name(t1,r,n),y_correct))

summa = 110 summa = 1110 summa = 11110 summa = 111110 summa = 1111110

Assertion failed.

3   Fail
t1=7; r=3; n=5; y_correct = 847; assert(isequal(your_fcn_name(t1,r,n),y_correct))

summa = 28 summa = 91 summa = 280 summa = 847 summa = 2548

Assertion failed.