lew (06/09/82)
According to the following program, and the knowledge that 12/25/2000 is a Monday, the occurences of Christmas on Monday through Sunday are 56 58 57 57 58 56 58 Computation is much easier than thinking! main(){ int year,day,weekday[7],i; for( i=0 ; i<7 ; i++ ) weekday[i]=0; for( day=0 , year=1 ; year <= 400 ; year++ ){ ++day; if( year%4 == 0 && (year%100 != 0 || year == 400 )) ++day; ++weekday[day%7]; } for( i=0 ; i<7 ; i++ ) printf(" %d",weekday[i]); printf("\n"); }