#include int main(void) { char month, ten, one, count = 0; char end[12] = {31,28,31,30,31,30,31,31,30,31,30,31}; for(month = 1; month <= 12; month++){ one = 1; ten = 0; while(end[month - 1] >= (ten * 10) + one){ if(one == 10){ one = 0; ten++; } if(month > ten + one){ one++; continue; } else if(month == ten + one) count++; ten++; one = 0; } } printf("%d\n", count); return 0; }