Cody

Solution 1173512

Submitted on 27 Apr 2017 by yurenchu
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
x = 0; y_correct = 6; assert(isequal(your_fcn_name(x),y_correct))

2   Pass
x = 1; y_correct = 10; assert(isequal(your_fcn_name(x),y_correct))

3   Pass
x = 10; y_correct = 18; assert(isequal(your_fcn_name(x),y_correct))

4   Pass
x = 18; y_correct = 22; assert(isequal(your_fcn_name(x),y_correct))

5   Pass
x = 22; y_correct = 30; assert(isequal(your_fcn_name(x),y_correct))

6   Pass
x = 30; y_correct = 36; assert(isequal(your_fcn_name(x),y_correct))

7   Pass
x = 36; y_correct = 42; assert(isequal(your_fcn_name(x),y_correct))

8   Pass
x = 42; y_correct = 46; assert(isequal(your_fcn_name(x),y_correct))

9   Pass
x = 1000; y_correct = 1008; assert(isequal(your_fcn_name(x),y_correct))

10   Pass
x = 9999999; y_correct = 9999990; assert(isequal(your_fcn_name(x),y_correct))