#include int main(void){ const int monthLength[] = {31,28,31,30,31,30,31,31,30,31,30,31}; int count = 0; for(int i = 0; i < 12; i++){ for(int j = 0; j < monthLength[i]; j++){ if(j % 10 + j / 10 == i + 1)count++; } } printf("%d\n",count); return 0; }