int zeller()
{
int day, month, year;
int result;
if (month < 3)
{
month += 12;
--year;
}
result = day + (13 * month - 27)/5 + year + year/4
- year/100 + year/400;
#ifdef MONDAY_IS_0
result += 6;
#endif // MONDAY_IS_0
return (result % 7);
}
Day, Month, and Year have not been initialized. I assume what you wanted to do was use the data enter in main. If so you need to pass that data as arguments in your zeller function. Also start using the code tags when posting and clearly state what is wrong with your code.