Cody

Problem 44668. Day counter function

Solution 3865558

Submitted on 26 Nov 2020 by Marek Macák
  • Size: 10
  • This is the leading solution.
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
year = 1902; foms_correct = 2; assert(isequal(day_counter( year ),foms_correct))

ans = []

2   Pass
year = 2002; foms_correct = 2; assert(isequal(day_counter( year ),foms_correct))

ans = []

3   Pass
year = 1996; foms_correct = 3; assert(isequal(day_counter( year ),foms_correct))

ans = []

4   Pass
year = 1885; foms_correct = 1; assert(isequal(day_counter( year ),foms_correct))

ans = []

Suggested Problems

More from this Author29

Community Treasure Hunt

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

Start Hunting!