what is the problem in my solution? why it is showing error.
output is named 'remaining' and not 'y'
Test | Status | Code Input and Output |
---|---|---|
1 | Fail |
%%
x = 99;
y_correct = 98;
assert(isequal(bottles_of_beer(x),y_correct))
y =
98
|
2 | Fail |
%%
x = 9;
y_correct = 8;
assert(isequal(bottles_of_beer(x),y_correct))
y =
8
|
3 | Fail |
%%
x = 1;
y_correct = 0;
assert(isequal(bottles_of_beer(x),y_correct))
y =
0
|
244 Solvers
The Hitchhiker's Guide to MATLAB
2696 Solvers
410 Solvers
276 Solvers
600 Solvers