Cody

Solution 2010573

Submitted on 9 Nov 2019 by Duy Nguyen
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=6; b=12; y_correct=30 assert(isequal(your_fcn_name(a,b),y_correct))

y_correct = 30 p = 1 -36 180 nghiemp = 30 6 y = 30

2   Pass
a=7; b=14; y_correct=35 assert(isequal(your_fcn_name(a,b),y_correct))

y_correct = 35 p = 1 -42 245 nghiemp = 35 7 y = 35

3   Pass
a=3; b=6; y_correct=15 assert(isequal(your_fcn_name(a,b),y_correct))

y_correct = 15 p = 1 -18 45 nghiemp = 15 3 y = 15

4   Pass
a=5; b=40; y_correct=65 assert(isequal(your_fcn_name(a,b),y_correct))

y_correct = 65 p = 1 -90 1625 nghiemp = 65 25 y = 65

5   Pass
a=5; b=90; y_correct=125 assert(isequal(your_fcn_name(a,b),y_correct))

y_correct = 125 p = 1 -190 8125 nghiemp = 125 65 y = 125

6   Pass
a=12; b=54; y_correct=102 assert(isequal(your_fcn_name(a,b),y_correct))

y_correct = 102 p = 1 -132 3060 nghiemp = 102 30 y = 102

7   Pass
a=16; b=18; y_correct=58 assert(isequal(your_fcn_name(a,b),y_correct))

y_correct = 58 p = 1 -68 580 nghiemp = 58 10 y = 58

8   Pass
a=16; b=72; y_correct=136 assert(isequal(your_fcn_name(a,b),y_correct))

y_correct = 136 p = 1 -176 5440 nghiemp = 136 40 y = 136

Suggested Problems

More from this Author12