I think results must be 15, 18 not 14, 17
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 10;
p=1;
c=0.35;
y_correct = 14;
assert(isequal(bottle(x,p,c),y_correct))
ans =
14
|
2 | Pass |
x = 20;
p=1.5;
c=0.4;
y_correct = 17;
assert(isequal(bottle(x,p,c),y_correct))
ans =
17
|
1091 Solvers
Output any real number that is neither positive nor negative
316 Solvers
208 Solvers
167 Solvers
464 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!