C program on calendar

1st february 2001 is “sunday”
Write a C program to display all dates of “friday” from 1st february 2001 to 1st february 2005.

Please help me out in solving this problem…

These codes can be derived , refer this