Skip to content

leap year ​

c++
if (year % 400 == 0 || (year % 4 == 0 && year % 100 != 0)) {
	ok = true;
} else {
	ok = false;
}