Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

gg zune

Name: Anonymous 2008-12-31 22:19

while (days > 365)
{
    if (IsLeapYear(year))
    {
        if (days > 366)
        {
            days -= 366;
            year += 1;
        }
    }
    else
    {
        days -= 365;
        year += 1;
    }
}

Name: Anonymous 2009-01-02 16:18

>>6
while (days > (IsLeapYear(year) ? 366 : 365)) {
    days -= (IsLeapYear(year) ? 366 : 365);
    year += 1;
}

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List