Cody

Solution 2413535

Submitted on 29 May 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 = 9; y_correct = 1; assert(isequal(Armstrong(x),y_correct))

v = 9

2   Pass
x = 371; y_correct = 1; assert(isequal(Armstrong(x),y_correct))

v = 3 7 1

3   Pass
x = 407; y_correct = 1; assert(isequal(Armstrong(x),y_correct))

v = 4 0 7

4   Pass
x = 1634; y_correct = 1; assert(isequal(Armstrong(x),y_correct))

v = 1 6 3 4

5   Fail
x = 68955; y_correct = 0; assert(isequal(Armstrong(x),y_correct))

v = 6 8 9 5 5

Output argument "y" (and maybe others) not assigned during call to "Armstrong". Error in Test5 (line 3) assert(isequal(Armstrong(x),y_correct))

6   Pass
x = 548834; y_correct = 1; assert(isequal(Armstrong(x),y_correct))

v = 5 4 8 8 3 4

7   Pass
x = 1741725; y_correct = 1; assert(isequal(Armstrong(x),y_correct))

v = 1 7 4 1 7 2 5

Suggested Problems

More from this Author1