Skip to content
Snippets Groups Projects
Commit d6875373 authored by Braakhekke, Maarten's avatar Braakhekke, Maarten
Browse files

Fixed bug

parent d75aa88e
No related branches found
No related tags found
No related merge requests found
function leaps = countleaps(year)
% calculates number of leapyears since 1 AD
leaps = floor((year-1)/4) - floor((year-1)/100) + floor((year-1)/400);
leaps = floor((year-1)/4) - floor((year-1)/100) + floor((year-1)/400) + 1;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment