Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 1;
y_correct = 100;
assert(isequal(logic(x),y_correct))
y =
100
|
2 | Pass |
x = 2;
y_correct = 96;
assert(isequal(logic(x),y_correct))
y =
100
|
3 | Pass |
x = 4;
assert(isequal(logic(x),89))
y =
100
|
4 | Pass |
x = 5;
assert(isequal(logic(x),114))
y =
100
|
Multiples of a Number in a Given Range
214 Solvers
270 Solvers
323 Solvers
132 Solvers
133 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!