Cody

Solution 2279650

Submitted on 14 May 2020 by Laza Álmos
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 = 1; b =3; y_correct = [1 10 100]; assert(isequal(your_fcn_name(a,b),y_correct))

x = [] x = 1 x = 1 1 x = 1 1 1 x = 1 10 1 x = 1 10 100 y = 1 10 100

2   Pass
a = 5; b =1; y_correct = [5]; assert(isequal(your_fcn_name(a,b),y_correct))

x = [] x = 5 y = 5

3   Pass
a = 7; b =6; y_correct = [7 70 700 7000 70000 700000] assert(isequal(your_fcn_name(a,b),y_correct))

y_correct = 7 70 700 7000 70000 700000 x = [] x = 7 x = 7 7 x = 7 7 7 x = 7 7 7 7 x = 7 7 7 7 7 x = 7 7 7 7 7 7 x = 7 70 7 7 7 7 x = 7 70 700 7 7 7 x = 7 70 700 7000 7 7 x = 7 70 700 7000 70000 7 x = 7 70 700 7000 70000 700000 y = 7 70 700 7000 70000 700000