Cody

Problem 45207. Calculate days until Christmas

Solution 3846473

Submitted on 25 Nov 2020 by Akrem Hadji
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
assert(isequal(daysUntilChristmas(2019,11,19),36))

y = 36

2   Pass
assert(isequal(daysUntilChristmas(2018,12,28),362))

y = 362

3   Pass
assert(isequal(daysUntilChristmas(2019,01,01),358))

y = 358

4   Pass
assert(isequal(daysUntilChristmas(2019,12,30),361))

y = 361

Suggested Problems

More from this Author5

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!