Activity 10.3.
#include <stdio.h>
int main(void) {
int year, month;
int month_total;
month_total = 0;
for (year=2010; year <= 2017; year++) {
printf("%d: ", year);
for (month=1; month <= 12; month++) {
printf(" %02d", month);
month_total++;
}
printf("\n");
}
printf("\n%d total months\n", month_total);
return(0);
}
What does this print? Be sure to read through the code and pretend you are the computer in order to determine what will happen. Do not simply run the code (that’s why there is no
Run button). Get out a piece of paper and trace through the code.

