Cody

Solution 2258692

Submitted on 6 May 2020 by Rafael Hernandez-Walls
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 = 1000; y_correct = 4; assert(isequal(compute_number(x),y_correct))

ans = 4

2   Pass
x = 0; y_correct = 1; assert(isequal(compute_number(x),y_correct))

ans = 1

3   Pass
x = 7675483; y_correct = 7; assert(isequal(compute_number(x),y_correct))

ans = 7

4   Pass
x=-2 y_correct = 1; assert(isequal(compute_number(x),y_correct))

x = -2 ans = 1

5   Pass
x=8476352689256 y_correct = 13; assert(isequal(compute_number(x),y_correct))

x = 8.4764e+12 ans = 13