typedef enum {Jan=1,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec} MONTH ;
char daysOfMonth(MONTH month)
{
const static char DaysOfMonth[12] = {31,28,31,30,31,30,31,31,30,31,30,31};
if(month >= Jan && month <= Dec)
printf("There're %d days in month %d\n",DaysOfMonth[month-1], month);
else
printf("month should be from %d to %d\n",Jan,Dec);
}