$ ./guess_the_languageProblem Solving — fill the blank
Problem Solving — fill the blank · medium · #283

What goes in the blank?

# Gregorian leap year rule
leap = y % 4 == 0 and (y % 100 != 0 ____ y % 400 == 0)

Answer: or (also accepted: or)

Century years are leap years only when divisible by 400, so either condition rescues the year.
Play Problem Solving ▸