Cody

Solution 1040851

Submitted on 31 Oct 2016 by Mohammad Haghighat
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 = 12345; y_correct = 0; assert(isequal(miles2go(x),y_correct));

2   Pass
x = 67903; y_correct = 10998; assert(isequal(miles2go(x),y_correct));

3   Pass
x = 9012; y_correct = 0; assert(isequal(miles2go(x),y_correct));

4   Pass
x = 9013; y_correct = 3332; assert(isequal(miles2go(x),y_correct));

5   Pass
x = 9011; y_correct = 1; assert(isequal(miles2go(x),y_correct));

6   Pass
x = 67878; y_correct = 12; assert(isequal(miles2go(x),y_correct));

7   Pass
x = 98765; y_correct = 24691; assert(isequal(miles2go(x),y_correct));

8   Pass
x = 9843; y_correct = 2502; assert(isequal(miles2go(x),y_correct));

9   Pass
x = 7903; y_correct = 998; assert(isequal(miles2go(x),y_correct));

10   Pass
x = 2345677; y_correct=1; assert(isequal(miles2go(x),y_correct));