Cody

# Problem 45328. leap year

Solution 2827515

Submitted on 13 Aug 2020
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   Fail
n = 1900:2000; assert(isequal( leap_count(n),25))

Unrecognized function or variable 'x'. Error in leap_count (line 2) y =x/4; Error in Test1 (line 2) assert(isequal( leap_count(n),25))

2   Fail
n = 100:2000; assert(isequal( leap_count(n),461))

Unrecognized function or variable 'x'. Error in leap_count (line 2) y =x/4; Error in Test2 (line 2) assert(isequal( leap_count(n),461))

3   Fail
n = 1600:2000; assert(isequal( leap_count(n),98))

Unrecognized function or variable 'x'. Error in leap_count (line 2) y =x/4; Error in Test3 (line 2) assert(isequal( leap_count(n),98))

4   Fail
n = 3000; assert(isequal( leap_count(n),0))

Unrecognized function or variable 'x'. Error in leap_count (line 2) y =x/4; Error in Test4 (line 2) assert(isequal( leap_count(n),0))

5   Fail
n = 377:467; assert(isequal( leap_count(n),22))

Unrecognized function or variable 'x'. Error in leap_count (line 2) y =x/4; Error in Test5 (line 2) assert(isequal( leap_count(n),22))

### Community Treasure Hunt

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

Start Hunting!