store the years in an array,
loop through the array and print out the element if it is properly divisible by 4
zeroliken
Nearly a Posting Virtuoso
1,346 posts since Nov 2011
Reputation Points: 214
Solved Threads: 205
Skill Endorsements: 14
You do not need to store the years, just do for loop after determining the last year you need to test and do function for testing for leap year you call inside the loop.
pyTony
pyMod
6,310 posts since Apr 2010
Reputation Points: 879
Solved Threads: 987
Skill Endorsements: 26