Created
August 20, 2020 18:56
-
-
Save armandofox/2183dec77d51a632f93923c6c3946fe6 to your computer and use it in GitHub Desktop.
date_calculator_pseudocode.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment