Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = [-2.5 2.5];
y_correct = [-2 2];
assert(isequal(round20(x),y_correct))
y =
-2 2
|
2 | Pass |
x = [-8.3 0.01 7.9];
y_correct = [-8 0 7];
assert(isequal(round20(x),y_correct))
y =
-8 0 7
|
Return the largest number that is adjacent to a zero
3108 Solvers
Increment a number, given its digits
505 Solvers
Create a square matrix of multiples
330 Solvers
Magic is simple (for beginners)
1110 Solvers
Output any real number that is neither positive nor negative
250 Solvers