-
1 Comment
liu xinyangon 7 Aug 2019
This test program is wrong.To judge a leap year, you need to calculate if the following condition is satisfied mod(year,4)==0 & mod(year,100)~=0 & mod(year,400)==0. However, this team only count those years that mod(year,4)==0
Suggested Problems
Find all elements less than 0 or greater than 10 and replace them with NaN
14222 Solvers
321 Solvers
511 Solvers
419 Solvers
428 Solvers
More from this Author95
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!