# I was writing a code to check for a leap year

But its more complicated than i thought. Give below are condiotions for a leap year and non leap year i came across. But i don't fully understand it... please give me a more precise condition for both years(leap/ non leap) 1) if the year is evenly divisible byÂ 400, then it is a leap year; 2) for other years, if the year is evenly divisible byÂ 100, then it is a regular year; 3) for other years, if the year is evenly divisible byÂ 4, then it is a leap year; 4) all remaining years are not leap years. Thus, the yearsÂ 1700,Â 1800, andÂ 1900Â are not leap years, since they are multiples ofÂ 100Â but notÂ 400. The yearsÂ 1600Â andÂ 2000Â are leap years, since they are multiples ofÂ 100Â and multiples ofÂ 400. The yearsÂ 2100,Â 2200Â andÂ 2300Â are not leap years.