using System; public class Program { static void Main() { int[] days = new int[13] {0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; int count = 0; for (int m = 1; m <= 12; m++) { for (int d = 1; d <= days[m]; d++) { if (m == d / 10 + d % 10) { count++; } } } Console.WriteLine(count); } }