#include form_jday( year, jd, mon, day) int year, jd, *mon, *day; { int i, j, k,skip; skip = 1; for(i=0; i<500; i++) if(year == 4*i){ skip = 0; break; } j = 0; for(i=1; i<=12; i++){ k = j; if(i==2 && skip == 0 ) j = j+29; else if(i==2 && skip == 1 ) j = j+28; else if(i==4 || i==6 || i==9 || i==11 ) j = j+30; else j = j+31; if( jd >k && jd <=j ) { *mon = i; break; } } for(j=1; j+k