public static void Main()
Program.yourMoveOne(13,1);
int mess = Program.yourMoveTwo(3,2);
Console.WriteLine(mess + "число");
Program.SaySome("проверка связи 1");
Program.SaySome("Проверка связи 2", "question", 1);
Program.SaySome("Проверка связи 3", repeats: 2);
Program.SaySome("Проверка связи 25", "квестшн");
string message = Program.GetMessage("Блаблабла", "question");
Console.WriteLine(message);
Console.WriteLine(Program.GetMessage("На лету", "exclamation"));
Program.GetMessage("В воздухе", "exclamation");
Console.WriteLine(Program.GetMessage("На лету", "квестшн"));
Console.WriteLine("Упс! Ошибка с описанием: " + e.Message);
Console.WriteLine("Но нам не страшны ошибки!");
public static void SaySome(string whatToSay, string whatEmotion="normal", int repeats=1){
string message = whatToSay;
for (int i=0; i<repeats; i++) {
Console.WriteLine(message);
public static string GetMessage(string whatToSay, string whatEmotion="normal"){
string message = whatToSay;
throw new Exception("Собственно, WTF???");
public static void yourMoveOne ( int day , int month ){
Console.WriteLine(day + "январь");
Console.WriteLine(day + "февраль");
Console.WriteLine(day +"март");
Console.WriteLine(day+"аперль");
Console.WriteLine(day + "май");
Console.WriteLine("такого числа не существует в календарном месяце" + mess);
public static int yourMoveTwo ( int day, int month ){
Console.WriteLine("первая неделя месяца" );
}else if (day>7 && day <= 14){
Console.WriteLine("вторая неделя месяца" );
}else if ( day > 14 && day<= 21){
Console.WriteLine("третья неделя месяца" );
}else if (day > 21 && day <= 31){
Console.WriteLine("четвертая неделя месяца");
Console.WriteLine("такого числа не существует в календарном месяце " + mess);