Do you know the day of the week you were born?

Hi.

A couple of days a go a wrote some code that comuputed the day of the week of an specific date.

All you need is a function wich tell you if year (a) is a leap year or not.

you enter the date like this scanf ("%d %d %d", &d, &m, &y);

int days=0;

for (year=0; year<=y; year++) (

if (leap(year))

days+=366;

else

days+=365;

)

After this loop, you have the number of days from january 1rst year 0 century 0, to date 31 dicember y-1.

then you just add the number of days till you get to the exact day.

Would someone be interested in doing this task? I had.

Saludos (Mexico)