diff options
| author | Mohammad S Anwar <Mohammad.Anwar@yahoo.com> | 2021-11-04 20:17:52 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-04 20:17:52 +0000 |
| commit | e70b0509a48e09c26ee52ffca6e0ee4d33e696bf (patch) | |
| tree | b7eca790eb8d33933569df35b178284bac7f2627 /challenge-137/abigail/node/ch-1.js | |
| parent | 28d1be0c3868078f8ab1561d493a192c4c22d3ff (diff) | |
| parent | 896f286ee0b88f2a381b5a97cbbbd82bbf4712af (diff) | |
| download | perlweeklychallenge-club-e70b0509a48e09c26ee52ffca6e0ee4d33e696bf.tar.gz perlweeklychallenge-club-e70b0509a48e09c26ee52ffca6e0ee4d33e696bf.tar.bz2 perlweeklychallenge-club-e70b0509a48e09c26ee52ffca6e0ee4d33e696bf.zip | |
Merge pull request #5161 from Abigail/abigail/week-137
Abigail/week 137
Diffstat (limited to 'challenge-137/abigail/node/ch-1.js')
| -rw-r--r-- | challenge-137/abigail/node/ch-1.js | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/challenge-137/abigail/node/ch-1.js b/challenge-137/abigail/node/ch-1.js new file mode 100644 index 0000000000..a744551341 --- /dev/null +++ b/challenge-137/abigail/node/ch-1.js @@ -0,0 +1,40 @@ +#!/usr/local/bin/node + +// +// See ../README.md +// + +// +// Run as: node ch-1.js +// + + +let start_years = [1600, 2000] +let long_year_offsets = [ + 4, 9, 15, 20, 26, + 32, 37, 43, 48, 54, + 60, 65, 71, 76, 82, + 88, 93, 99, + 105, 111, 116, 122, + 128, 133, 139, 144, 150, + 156, 161, 167, 172, 178, + 184, 189, 195, + 201, 207, 212, 218, + 224, 229, 235, 240, 246, + 252, 257, 263, 268, 274, + 280, 285, 291, 296, + 303, 308, 314, + 320, 325, 331, 336, 342, + 348, 353, 359, 364, 370, + 376, 381, 387, 392, 398 +] + + +start_years . forEach (start_year => { + long_year_offsets . forEach (offset => { + let year = start_year + offset + if (1900 <= year && year <= 2100) { + console . log (year) + } + }) +}) |
