diff --git a/works/lab-01/lesson1/lesson1.sln b/works/lab-01/lesson1/lesson1.sln new file mode 100644 index 0000000..d5f042a --- /dev/null +++ b/works/lab-01/lesson1/lesson1.sln @@ -0,0 +1,16 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "lesson1", "lesson1\lesson1.csproj", "{7BF48FDA-AC3A-4E31-A662-653EDE2FBCE1}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {7BF48FDA-AC3A-4E31-A662-653EDE2FBCE1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {7BF48FDA-AC3A-4E31-A662-653EDE2FBCE1}.Debug|Any CPU.Build.0 = Debug|Any CPU + {7BF48FDA-AC3A-4E31-A662-653EDE2FBCE1}.Release|Any CPU.ActiveCfg = Release|Any CPU + {7BF48FDA-AC3A-4E31-A662-653EDE2FBCE1}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection +EndGlobal diff --git a/works/lab-01/lesson1/lesson1/Program.cs b/works/lab-01/lesson1/lesson1/Program.cs new file mode 100644 index 0000000..f9ac9f9 --- /dev/null +++ b/works/lab-01/lesson1/lesson1/Program.cs @@ -0,0 +1,21 @@ +/*string pokemonName = "Чармандер"; +string elementType = "Огонь"; +int level = 1; +int hp = 95; +Console.WriteLine($"=== БАЗА ДАННЫХ ПОКЕМОНОВ ==="); +Console.WriteLine($"Покемон: {pokemonName}"); +Console.WriteLine($"Стихия: {elementType}"); +Console.WriteLine($"Уровень: {level} | HP: {hp}\n");*/ + +Console.Write("Введите имя тренера: "); +string trainerName = Console.ReadLine(); +Console.Write("Введите имя покемона: "); +string pokemonName = Console.ReadLine(); +Console.Write("Введите стихию: "); +string elementType = Console.ReadLine(); +Console.Write("Введите регион: "); +string regionName = Console.ReadLine(); +Console.WriteLine("\n****************************************\n" + "ПАСПОРТ ПОКЕМОНА"); +Console.WriteLine($"Тренер: {trainerName} (Регион: {regionName})"); +Console.WriteLine($"Покемон: {pokemonName} [Стихия: ${elementType}]"); +Console.WriteLine("****************************************"); diff --git a/works/lab-01/lesson1/lesson1/lesson1.csproj b/works/lab-01/lesson1/lesson1/lesson1.csproj new file mode 100644 index 0000000..6c1dc92 --- /dev/null +++ b/works/lab-01/lesson1/lesson1/lesson1.csproj @@ -0,0 +1,10 @@ + + + + Exe + net10.0 + enable + enable + + +