From efb41a5d8ab404707c8d6e0575c2a00d6b216c62 Mon Sep 17 00:00:00 2001 From: adam1ch Date: Fri, 9 Oct 2026 14:51:47 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=BB=D0=B0=D0=B1=D0=BE=D1=80=D0=B0=D1=82?= =?UTF-8?q?=D0=BE=D1=80=D0=BD=D1=8B=D1=85=20=D1=80=D0=B0=D0=B1=D0=BE=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- works/csharp/lab-01/lab-01/lab-01.sln | 16 +++++++++++++ works/csharp/lab-01/lab-01/lab-01/Program.cs | 24 +++++++++++++++++++ .../csharp/lab-01/lab-01/lab-01/lab-01.csproj | 11 +++++++++ 3 files changed, 51 insertions(+) create mode 100644 works/csharp/lab-01/lab-01/lab-01.sln create mode 100644 works/csharp/lab-01/lab-01/lab-01/Program.cs create mode 100644 works/csharp/lab-01/lab-01/lab-01/lab-01.csproj diff --git a/works/csharp/lab-01/lab-01/lab-01.sln b/works/csharp/lab-01/lab-01/lab-01.sln new file mode 100644 index 0000000..7b8b4bd --- /dev/null +++ b/works/csharp/lab-01/lab-01/lab-01.sln @@ -0,0 +1,16 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "lab-01", "lab-01\lab-01.csproj", "{8F039FAA-E133-4125-B0C6-FDF010EF0DF7}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {8F039FAA-E133-4125-B0C6-FDF010EF0DF7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {8F039FAA-E133-4125-B0C6-FDF010EF0DF7}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8F039FAA-E133-4125-B0C6-FDF010EF0DF7}.Release|Any CPU.ActiveCfg = Release|Any CPU + {8F039FAA-E133-4125-B0C6-FDF010EF0DF7}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection +EndGlobal diff --git a/works/csharp/lab-01/lab-01/lab-01/Program.cs b/works/csharp/lab-01/lab-01/lab-01/Program.cs new file mode 100644 index 0000000..e2c18b3 --- /dev/null +++ b/works/csharp/lab-01/lab-01/lab-01/Program.cs @@ -0,0 +1,24 @@ +/* +string pokemonName = "Чармандер"; +string elementType = "Огонь"; +int level = 1; +int hp = 95; + +Console.WriteLine($"=== БАЗА ДАННЫХ ПОКЕМОНОВ === \nПокемон: {pokemonName}\nСтихия: {elementType}\nУровень: {level} | HP:{hp}"); +*/ +//zad 2 +string trainerName = Console.ReadLine(); +string pokemonName = Console.ReadLine(); +string elementType = Console.ReadLine(); +string regionName = Console.ReadLine(); + +Console.WriteLine($"Введите имя тренера: {trainerName}"); +Console.WriteLine($"Введите имя покемона: {pokemonName}"); +Console.WriteLine($"Введите стихию: {elementType}"); +Console.WriteLine($"Введите регион: {regionName}"); +Console.WriteLine(""); +Console.WriteLine("****************************************"); +Console.WriteLine("ПАСПОРТ ПОКЕМОНА"); +Console.WriteLine($"Тренер: {trainerName} (Регион: {regionName})"); +Console.WriteLine($"Покемон: {pokemonName} [Стихия: {elementType}]"); +Console.WriteLine("****************************************"); \ No newline at end of file diff --git a/works/csharp/lab-01/lab-01/lab-01/lab-01.csproj b/works/csharp/lab-01/lab-01/lab-01/lab-01.csproj new file mode 100644 index 0000000..c5a245f --- /dev/null +++ b/works/csharp/lab-01/lab-01/lab-01/lab-01.csproj @@ -0,0 +1,11 @@ + + + + Exe + net10.0 + lab_01 + enable + enable + + +