main

prev        

Statement of a problem № m100652



Develop a well-structured function to determine the elapsed days in a year. The function should be passed three values: mo = the month (1-12), da = the day (1-31) and leap = (0 for non-leap year and 1 for leap year). Test it for January 1, 1999; February 29, 2000; March 1, 2001; June 21, 2002; and December 31, 2004.




New search. (Also 1294 free access solutions)

Online calculators