#include #include int main() { char *animal[] = { "monkey", /* 0 */ "rooster", /* 1 */ "dog", /* 2 */ "pig", /* 3 */ "rat", /* 4 */ "ox", /* 5 */ "tiger", /* 6 */ "hare", /* 7 */ "dragon", /* 8 */ "snake", /* 9 */ "horse", /* 10 */ "sheep" /* 11 */ }; #define N (sizeof animal / sizeof animal[0]) int year; printf("Please type a year and press RETURN: "); scanf("%d", &year); printf("%d is the year of the %s.\n", year, animal[year % N]); return EXIT_SUCCESS; }