Suggest lang, once masolve mo na first solution mo, you should check programmatically the year if a leap year.
Python:
# https://docs.microsoft.com/en-us/office/troubleshoot/excel/determine-a-leap-year
def is_leap_year(year: int) -> bool:
year = int(year)
if not year % 4 == 0:
print(f'{year} is not a Leap Year')
return False
print(f'{year} is a Leap Year')
print('divisible by 4')
if year % 100 == 0:
print('and divisible by 100')
else:
print('and not divisible by 100')
if year % 400 == 0:
print('But also divisible by 400')
return True
for year in (1990, 2000, 2021, 2024):
is_leaf_year(year)
print()