/* Same output as the above program, but use switch instead. */ #include main() { int year; for (year = 1992; year <= 2012; year = year + 1) { printf("%d: ", year); switch (year % 4) { case 0: printf("presidential/"); case 2: printf("congressional/"); default: printf("local\n"); break; } } }