ch 9/e4.c
//Function to calculate the day of the week

Function to calculate the day of the week
Function to calculate the day of the week
void print_day ( struct date d )
	{
		int calc_N_value ( struct date d ) ;
		int day = calc_N_value ( d ) ;
		day -= 621049 ;
		day = day % 7 ;
		switch ( day )
			{
				case 0:
					printf ( "Sunday\n") ;
					break ;
				case 1:
					printf ( "Monday\n") ;
					break ;
				case 2:
					printf ( "Tuesday\n") ;
					break ;
				case 3:
					printf ( "Wednesday\n") ;
					break ;
				case 4:
					printf ( "Thursday\n") ;
					break ;
				case 5:
					printf ( "Friday\n") ;
					break ;
				case 6:
					printf ( "Saturday\n") ;
					break ;
			}
		return ;	
	}
void print_day ( struct date d ) { int calc_N_value ( struct date d ) ; int day = calc_N_value ( d ) ; day -= 621049 ; day = day % 7 ; switch ( day ) { case 0 : printf ( " \n " ) ; break ; case 1 : printf ( " \n " ) ; break ; case 2 : printf ( " \n " ) ; break ; case 3 : printf ( " \n " ) ; break ; case 4 : printf ( " \n " ) ; break ; case 5 : printf ( " \n " ) ; break ; case 6 : printf ( " \n " ) ; break ; } return ; }
Function to calculate the day of the week
Function to calculate the day of the week
//Function decalration
