using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Lecture3 { class Program { static void Main(string[] args) { int[] values = new int[] { 0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; int count = 0; for (int i = 1; i <= 12; i++) { for (int j = 1; j <= values[i]; j++) { int day = j % 10; if (j / 10 != 0) { day += j / 10; } if (day == i) { count++; } } } Console.WriteLine(count); } } }