ch 9/p3.c
//Function to check for a leap year

Function to check for a leap year
Function to check for a leap year
bool isLeapYear ( struct date d )
	{
		bool flag ;
		if ( d.year % 400 == 0 || d.year % 4 == 0 && d.year % 100 != 0 )
			flag = true ;
		else
			flag = false ;
		return flag ;
	}
bool isLeapYear ( struct date d ) { bool flag ; if ( d . year % 400 == 0 || d . year % 4 == 0 && d . year % 100 != 0 ) flag = true ; else flag = false ; return flag ; }
Function to check for a leap year
Function to check for a leap year