#include typedef enum { JAN = 1, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, DEC } months; typedef struct { int days; char name[15]; } month_entry; const month_entry month_list[12 + 1] = { { 0, ""}, {31, "Enero"}, {28, "Febrero"}, {31, "Marzo"}, {30, "Abril"}, {31, "Mayo"}, {30, "Junio"}, {31, "Julio"}, {31, "Agosto"}, {30, "Septiembre"}, {31, "Octubre"}, {30, "Noviembre"}, {31, "Diciembre"} }; int main(void) { months month; for (month = JAN; month <= DEC; month++) { printf("%s %d días\n", month_list[month].name, month_list[month].days); } return 0; }