how to find leap year algorithm code example
Example: leap year algorithm
def isLeapYear (year):
if ((year % 4 == 0) and (year % 100 != 0)) or (year % 400 == 0):
true
else:
false
def isLeapYear (year):
if ((year % 4 == 0) and (year % 100 != 0)) or (year % 400 == 0):
true
else:
false