#include int daysBy(int month) { if(month==1||month==3||month==5||month==7||month==8||month==10||month==12){ return 31; } if(month==2){ return 28; } return 30; } int main(){ int count; count=0; for(int month=1;month<=12;month++){ for(int day=1;day<=daysBy(month);day++){ int a; a=(day/10)+(day%10); if(month==a){ count++; } } } printf("%d",count); }