#include int main(void){ int day_array[12]={31,28,31,30,31,30,31,31,30,31,30,31}; int month,day; int happy_day=0; int day_total=0; for(month=1;month<=12;month++){ for(day=1;day<=day_array[month-1];day++){ day_total=0; day_total = day/10; day_total += day%10; if(month==day_total){ happy_day++; } } } printf("%d",happy_day); return 0; }