#include enum months {jan=1, feb, mar, apr, may, jun, jul, aug, sep, oct, nov, dec}; void printDays(enum months month) { switch (month) { case jan: case mar: case may: case jul: case aug: case oct: case dec: printf("month %2d has 31 days\n", month); break; case apr: case jun: case sep: case nov: printf("month %2d has 30 days\n", month); break; case feb: printf("month %2d has 28 or 29 days\n", month); break; default: printf("month %2d does not exist!!\n", month); break; } }