#include main() { int count = 0; int numofdays[12] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; for (int month=1; month<=12; month++) { for (int day = 1; day <= numofdays[month-1]; day++) { if (month == (day/10) + (day%10)) count++; } } printf("%d\n", count); }