bool isLeapYear(int y)
{
if(y%4==0)
{
if(y%100==0)
{
if(y%400=0)
{
return true;
}
}
else
{
return true;
}
}
return false;
}
bool isLeapYear(int y)
{
bool b4 = (y%4==0);
bool b100 = (y%100==0);
bool b400 = (y%400==0);
if( (b4 && b100 && b400) || (b4 && !b100) )
return true;
return false;
}