Hey random question guys...
Whats the algorithm for determing the first day of a given year?
Example:
Sun 0, Mon 1, Tues 2, Wed 3, Thurs 4, Fri 5, Sat 6
f(2004) = 4 = Which is Thursday
January 1st, 2004, was a Thursday.
THANKS!
Whats the algorithm for determing the first day of a given year?
Example:
Sun 0, Mon 1, Tues 2, Wed 3, Thurs 4, Fri 5, Sat 6
f(2004) = 4 = Which is Thursday
January 1st, 2004, was a Thursday.
THANKS!