PASTEBIN
| #1 paste tool since 2002
create new paste
tools
api
archive
faq
PASTEBIN
create new paste
trending pastes
sign up
login
my alerts
my settings
my profile
Don't like ads?
PRO users
don't see any ads ;-)
Public Pastes
Untitled
1 sec ago
Untitled
9 sec ago
Untitled
20 sec ago
Untitled
32 sec ago
Untitled
18 sec ago
Untitled
20 sec ago
Untitled
20 sec ago
Untitled
21 sec ago
date_calculator_pseudocode.txt
By:
saasbook
on
Aug 21st, 2012
| syntax:
None
| size: 0.21 KB | hits: 50 | expires: Never
download
|
raw
|
embed
|
report abuse
|
print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
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
create a
new version
of this paste
RAW Paste Data
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