Sweet Juniper berries. This is absolutely the last help you'll get without showing some effort (read: code) of your own. Look at this code for a similar function isEven(). Play around with it, make some changes and an honest effort and post back with your modified code.
Code:
int isEven(int number)
{
if (number % 2 == 0)
{
return 1;
}
return 0;
}
int main(void)
{
int i,j;
for (i = 7; i < 11 ; i++)
{
for (j = i ; j < 13 ; j++)
{
if ( isEven(i+j) == 1 )
{
printf("i=%i j=%i and i+j is even\n",i,j);
}
}
}
return 0;
}