We're not here to solve your assignments, we will how ever provide you with help, if you get stuck and show us what code you've got so far..
Anyway, a google search on the subject:
"a leap year test written in c"
Will provide you with enough info to get started, just pick the
first item on the list.