![gdeorsey](/avatars/15687.jpg)
gdeorsey
03.11.2020 •
Computers and Technology
Write a program will print all of the leap years between 1900 and 2100, inclusive. Leap years are any year that is evenly divisible by 4 BUT years that are divisible by 4 and 500 are not leap years For example: the year 1000 is evenly divisible by 4 and 500, therefore it was not a leap year g
Solved
Show answers
More tips
- F Family and Home Is It Worth Spoiling a Child?...
- S Society and Politics Will Japan become Russia s Military Enemy?...
- P Philosophy Is Everything We Strive for Eventually Achieved and Destroyed?...
- S Society and Politics Understanding Politics and Its Role in the Development of Civilization...
- P Philosophy Why Did God Create Man and Place Him in Obscurity?...
- S Society and Politics Skoptsy: Who They Are and How They Perform Castration?...
- O Other Childhood Fears: What Many of Us Experienced...
- P Philosophy What is Something for you?...
- H Health and Medicine Why Do Humans Have One Heart?...
- P Philosophy Unbelievable stories of encounters with otherworldly forces...
Ответ:
In python 3:
year = 1900
while year != 2100:
if year % 4 == 0 and year % 500 != 0:
print(year)
year += 1
Ответ:
do you have any notes 2ith this