Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = -21;
y_correct = 2;
assert(isequal(count_digits(x),y_correct))
ans =
2
|
2 | Pass |
x = 3567;
y_correct = 4;
assert(isequal(count_digits(x),y_correct))
ans =
4
|
3 | Pass |
x = -2;
y_correct = 1;
assert(isequal(count_digits(x),y_correct))
ans =
1
|
6063 Solvers
9834 Solvers
Check if number exists in vector
4466 Solvers
432 Solvers
260 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!