Guest User

Untitled

a guest
Oct 18th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  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;
Add Comment
Please, Sign In to add comment