how would you write an if statement to determine whether or not it is a leap year. A year is a leap year if it is evenly divisible by four hundred or if it is evenly divisible by four, but not by one hundred

i tried to start it like so

Code:if (((((year/400)%2)== 0)||((((year/4)%2)== 0)&&(((year/100)%2)!= 0)))&&((month==2)&&(day==29)))