diff --git a/App.config b/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Homework 1.csproj b/Homework 1.csproj new file mode 100644 index 0000000..95bbe94 --- /dev/null +++ b/Homework 1.csproj @@ -0,0 +1,53 @@ + + + + + Debug + AnyCPU + {C2CF7C7A-D63F-48F7-BBC6-8CAE839C709C} + Exe + Homework_1 + Homework 1 + v4.7.2 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Homework 1.csproj.user b/Homework 1.csproj.user new file mode 100644 index 0000000..29671f6 --- /dev/null +++ b/Homework 1.csproj.user @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/Homework 1.sln b/Homework 1.sln new file mode 100644 index 0000000..f7c8f0b --- /dev/null +++ b/Homework 1.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.4.33122.133 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Homework 1", "Homework 1.csproj", "{C2CF7C7A-D63F-48F7-BBC6-8CAE839C709C}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {C2CF7C7A-D63F-48F7-BBC6-8CAE839C709C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C2CF7C7A-D63F-48F7-BBC6-8CAE839C709C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C2CF7C7A-D63F-48F7-BBC6-8CAE839C709C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C2CF7C7A-D63F-48F7-BBC6-8CAE839C709C}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {5C0CC003-CD37-4F23-A04D-04897B6435CF} + EndGlobalSection +EndGlobal diff --git a/Program.cs b/Program.cs new file mode 100644 index 0000000..144f7d6 --- /dev/null +++ b/Program.cs @@ -0,0 +1,120 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Linq.Expressions; +using System.Text; +using System.Threading.Tasks; + +namespace Homework_1 +{ + internal class Program + { + static void Main(string[] args) + { + // Задача 10 + //int i = 0; + //int number = 0; + //while (i < 1) + //{ + // Console.WriteLine("Введите трёхзначное число."); + // number = int.Parse(Console.ReadLine()); + // int check = number / 100; + // if (check >= 1 && check < 10) + // { + // check = check * 100; + // number = number - check; + // number = number / 10; + // i++; + // } + // else + // { + // Console.WriteLine("Число не трёхзначное, попробуйте снова."); + // } + //} + //Console.WriteLine(number); + + // Задача 13 + + // Хотел сделать возможным выход из программы, путём введения не цифры, а буквы, но у меня не вышло, хотя я помню, что вы об этом рассказывали + + //int i = 0; + //int number = 0; + //int d = 0; + //while (i < 1) + //{ + // Console.WriteLine("Введите число:"); + // number = int.Parse(Console.ReadLine()); + // if (number > 99){ + // d = 1; + // } + // else if(number < 100) + // { + // d = 2; + // } + // else + // { + // d = 3; + // } + // switch (d) + // { + // case 1: + // Console.WriteLine("Третья цифра "+ number.ToString()[2]); + // break; + // case 2: + // Console.WriteLine("Третьей цифры нет."); + // break; + // case 3: + // i++; + // break; + + // } + + //} + + // Задача 15 + + Console.WriteLine("Введите число от 1 до 7:"); + int day = int.Parse(Console.ReadLine()); + + switch (day) + { + case 1: Console.WriteLine("Понедельник - день тяжёлый. Не выходной."); + break; + case 2: Console.WriteLine("Кто в понедельник бездельник, тот и во вторник не работник. Не выходной."); + break; + case 3: Console.WriteLine("Среда пришла — неделя прошла. Не выходной."); + break; + case 4: Console.WriteLine("У лжеца на одной неделе семь четвергов. Не выходной."); + break; + case 5: Console.WriteLine("Зарплата в пятницу — удар по печени. Не выходной."); + break; + case 6: Console.WriteLine("Счастья без суббот не бывает. Выходной."); + break; + case 7: Console.WriteLine("Воскресенье — день накануне понедельника, так что он отравлен. Выходной."); + break; + default: Console.WriteLine("Такого дня недели нет, но куда деваться?"); + break; + } + +//░░░░░░░░░░░░▄▐ +//░░░░░░▄▄▄░░▄██▄ +//░░░░░▐▀█▀▌░░░░▀█▄ +//░░░░░▐█▄█▌░░░░░░▀█▄ +//░░░░░░▀▄▀░░░▄▄▄▄▄▀▀ +//░░░░▄▄▄██▀▀▀▀ +//░░░█▀▄▄▄█░▀▀ +//░░░▌░▄▄▄▐▌▀▀▀ +//▄░▐░░░▄▄░█░▀▀ +//▀█▌░░░▄░▀█▀░▀ +//░░░░░░░▄▄▐▌▄▄ +//░░░░░░░▀███▀█░▄ +//░░░░░░▐▌▀▄▀▄▀▐▄ +//░░░░░░▐▀░░░░░░▐▌ +//░░░░░░█░░░░░░░░█ +//░░░░░▐▌░░░░░░░░░█ +//░░░░░█░░░░░░░░░░▐▌ + + + } + } +} diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..91be487 --- /dev/null +++ b/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// Общие сведения об этой сборке предоставляются следующим набором +// набора атрибутов. Измените значения этих атрибутов для изменения сведений, +// связанные с этой сборкой. +[assembly: AssemblyTitle("Homework 1")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Homework 1")] +[assembly: AssemblyCopyright("Copyright © 2022")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Установка значения False для параметра ComVisible делает типы в этой сборке невидимыми +// для компонентов COM. Если необходимо обратиться к типу в этой сборке через +// из модели COM задайте для атрибута ComVisible этого типа значение true. +[assembly: ComVisible(false)] + +// Следующий GUID представляет идентификатор typelib, если этот проект доступен из модели COM +[assembly: Guid("c2cf7c7a-d63f-48f7-bbc6-8cae839c709c")] + +// Сведения о версии сборки состоят из указанных ниже четырех значений: +// +// Основной номер версии +// Дополнительный номер версии +// Номер сборки +// Номер редакции +// +// Можно задать все значения или принять номера сборки и редакции по умолчанию +// используя "*", как показано ниже: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/bin/Debug/Homework 1.exe b/bin/Debug/Homework 1.exe new file mode 100644 index 0000000..5b7727f Binary files /dev/null and b/bin/Debug/Homework 1.exe differ diff --git a/bin/Debug/Homework 1.exe.config b/bin/Debug/Homework 1.exe.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/bin/Debug/Homework 1.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/bin/Debug/Homework 1.pdb b/bin/Debug/Homework 1.pdb new file mode 100644 index 0000000..93bab01 Binary files /dev/null and b/bin/Debug/Homework 1.pdb differ diff --git a/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs b/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs new file mode 100644 index 0000000..3871b18 --- /dev/null +++ b/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] diff --git a/obj/Debug/DesignTimeResolveAssemblyReferences.cache b/obj/Debug/DesignTimeResolveAssemblyReferences.cache new file mode 100644 index 0000000..a7cf1c2 Binary files /dev/null and b/obj/Debug/DesignTimeResolveAssemblyReferences.cache differ diff --git a/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..c29a2bf Binary files /dev/null and b/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/obj/Debug/Homework 1.csproj.AssemblyReference.cache b/obj/Debug/Homework 1.csproj.AssemblyReference.cache new file mode 100644 index 0000000..25132c6 Binary files /dev/null and b/obj/Debug/Homework 1.csproj.AssemblyReference.cache differ diff --git a/obj/Debug/Homework 1.csproj.CoreCompileInputs.cache b/obj/Debug/Homework 1.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..ee191d7 --- /dev/null +++ b/obj/Debug/Homework 1.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +7f4b213b428f4c013f19137338418ee1f5525793 diff --git a/obj/Debug/Homework 1.csproj.FileListAbsolute.txt b/obj/Debug/Homework 1.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..083e99c --- /dev/null +++ b/obj/Debug/Homework 1.csproj.FileListAbsolute.txt @@ -0,0 +1,8 @@ +D:\MVashenko homework\Homework 1\obj\Debug\Homework 1.csproj.AssemblyReference.cache +D:\MVashenko homework\Homework 1\obj\Debug\Homework 1.csproj.SuggestedBindingRedirects.cache +D:\MVashenko homework\Homework 1\obj\Debug\Homework 1.csproj.CoreCompileInputs.cache +D:\MVashenko homework\Homework 1\bin\Debug\Homework 1.exe.config +D:\MVashenko homework\Homework 1\bin\Debug\Homework 1.exe +D:\MVashenko homework\Homework 1\bin\Debug\Homework 1.pdb +D:\MVashenko homework\Homework 1\obj\Debug\Homework 1.exe +D:\MVashenko homework\Homework 1\obj\Debug\Homework 1.pdb diff --git a/obj/Debug/Homework 1.csproj.SuggestedBindingRedirects.cache b/obj/Debug/Homework 1.csproj.SuggestedBindingRedirects.cache new file mode 100644 index 0000000..e69de29 diff --git a/obj/Debug/Homework 1.exe b/obj/Debug/Homework 1.exe new file mode 100644 index 0000000..5b7727f Binary files /dev/null and b/obj/Debug/Homework 1.exe differ diff --git a/obj/Debug/Homework 1.pdb b/obj/Debug/Homework 1.pdb new file mode 100644 index 0000000..93bab01 Binary files /dev/null and b/obj/Debug/Homework 1.pdb differ