Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
year = 2015;
y_correct = 90;
assert(isequal(cutoff(year),y_correct))
ans =
90
|
2 | Pass |
year = 2010;
y_correct = 60;
assert(isequal(cutoff(year),y_correct))
ans =
60
|
3 | Pass |
year =2018;
y_correct = 108;
assert(isequal(cutoff(year),y_correct))
ans =
108
|
Return the 3n+1 sequence for n
6170 Solvers
321 Solvers
549 Solvers
171 Solvers
Find the Oldest Person in a Room
5129 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!