daycounter_316 - sum2 = sum1 + 1; case mo = 8 sum1 = 59 +...

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

View Full Document Right Arrow Icon
function nd = days(mo, da, leap) f for i = switch mo case mo = 1 sum = da; case mo = 2 sum = 31 + da; case mo = 3 sum1 = 59 + da; sum2 = sum1 + 1; case mo = 4 sum1 = 59 + da; sum2 = sum1 + 1 case mo = 5 sum1 = 59 + da; sum2 = sum1 + 1; case mo = 6 sum1 = 59 + da; sum2 = sum1 + 1; case mo = 7 sum1 = 59 + da;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: sum2 = sum1 + 1; case mo = 8 sum1 = 59 + da; sum2 = sum1 + 1; case mo = 9 sum1 = 59 + da; sum2 = sum1 + 1; case mo = 10 sum1 = 59 + da; sum2 = sum1 + 1; case mo = 11 sum1 = 59 + da; sum2 = sum1 + 1; case mo = 12 sum1 = 59 + da; sum2 = sum1 + 1;...
View Full Document

This note was uploaded on 09/21/2011 for the course EGM 3344 taught by Professor Raphaelhaftka during the Spring '09 term at University of Florida.

Ask a homework question - tutors are online