Cody

# Problem 44100. Input & Output "Smart One"

Solution 2955118

Submitted on 16 Sep 2020
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   Fail
x = 1; y_correct = 10; assert(isequal(your_fcn_name(x),y_correct))

Assertion failed.

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

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

Assertion failed.

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   Fail
x = 42; y_correct = 46; assert(isequal(your_fcn_name(x),y_correct))

Assertion failed.

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

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

Assertion failed.

### Community Treasure Hunt

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

Start Hunting!