This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 8137;
n=2;
y_correct = 8100;
assert(isequal(round_10_n(x,n),y_correct))
|
2 | Pass |
x=45321;
n=3;
y_correct = 45000;
assert(isequal(round_10_n(x,n),y_correct))
|
347 Solvers
420 Solvers
363 Solvers
111 Solvers
33 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!