This preview shows page 1. Sign up to view the full content.
Unformatted text preview: if (y < 2100) noLD = ceil((y - 1900) / 4); else noLD = floor((y - 1900) / 4) - 1; end fprintf('# of leap year days from 1/1/1900 to 12/31/%d = %d\n', y, noLD); %fprintf('# of leap year days from 1/1/%d to 12/31/2199 = %d\n', y, x);...
View Full Document
This note was uploaded on 03/15/2011 for the course COM S 100 at Cornell University (Engineering School).