Solution 2072153

Submitted on 28 Dec 2019
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   Fail
x = 248; y_correct = 3; assert(isequal(ndigits(x),y_correct))

Assertion failed.

2   Fail
x=1589 y_correct=4; assert(isequal(ndigits(x),y_correct));

x = 1589

Assertion failed.

3   Fail
x=100 y_correct=3; assert(isequal(ndigits(x),y_correct));

x = 100

Assertion failed.

4   Fail
x=-10; y_correct=2; assert(isequal(ndigits(x),y_correct));

Assertion failed.

Suggested Problems

More from this Author1