Or login with:
| intdaysInYear( | int | year | )[inline] |
365 + isLeapYear(Year);
#include <stdio.h> #include <codecogs/units/date/date.h> #include <codecogs/units/date/daysinyear.h> using namespace Units::Date; int main() { for(int i=2000;i<=2004;i++) printf("\n Year %d has %d days",i , daysInYear(i)); return 0; }
| year | can be any integer greater than 4800 BC (see isLeapYear). |
Source code is available when you agree to a GP Licence or buy a Commercial Licence.
Not a member, then Register with CodeCogs. Already a Member, then Login.
You must login to leave a messge