leapyear - i if (test1 == 0) &&...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
%2/8/11 % year = input('What year is it: '); y test1 = rem(year, 4); test2 = rem(year, 100); test3 = rem(year, 400); t isleapyear = 0;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: i if (test1 == 0) && (test2 ~= 0) isleapyear = 1; end e if (test3 == 0) isleapyear = 1; end...
View Full Document

Ask a homework question - tutors are online