Cody

# Problem 44100. Input & Output "Smart One"

Solution 1227996

Submitted on 10 Jul 2017 by Binbin Qi
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))

ans = 6

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

ans = 10

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

ans = 18

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

ans = 22

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

ans = 30

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

ans = 36

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

ans = 42

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

ans = 46

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

ans = 1008

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

ans = 9999990

### Community Treasure Hunt

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

Start Hunting!