Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- start with Year = 1980
- while (days remaining > 365)
- if Year is a leap year
- then if possible, peel off 366 days and advance Year by 1
- else
- peel off 365 days and advance Year by 1
- return Year
Advertisement
Add Comment
Please, Sign In to add comment