using System;
public class Program
{
public static void Main()
int m = 10; // текущий месяц - октябрь
int s = 5; // первый день недели - пт (ура, мужики!)
int daysInMonth;
switch (m)
case 1:
case 3:
case 5:
case 7:
case 8:
case 10:
case 12:
daysInMonth = 31; break;
case 2:
daysInMonth = 28; break;
case 4:
case 6:
case 9:
case 11:
daysInMonth = 30; break;
default:
daysInMonth = 0; break;
}
int result;
for (int d = 1; d <= daysInMonth; d++)
result = (s + d - 2) % 7;
if (result <= 4)
Console.WriteLine("День " + d + " рабочий");
else
Console.WriteLine("День " + d + " выходной");