daily pastebin goal
51%
SHARE
TWEET

Untitled

a guest Oct 18th, 2018 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int day_start;
  2. int x1, x2, x3;
  3. x1 = (year - 1)/ 4;
  4. x2 = (year - 1)/ 100;
  5. x3 = (year - 1)/ 400;
  6. day_start = (year + x1 - x2 + x3) %7;
  7. return day_start;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top