For me I input it as:
bool is_LeapYear(int year) { if ((year % 100) % 4 == 0) { return true; } else { return false; } }