From 63a1d69c7bc14ac592608aa0922759e9c4d6448e Mon Sep 17 00:00:00 2001 From: 328p <328p@BTK.MAIN> Date: Thu, 3 Sep 2026 17:15:02 +0300 Subject: [PATCH] =?UTF-8?q?=D0=92=D1=8B=D0=BF=D0=BE=D0=BB=D0=BD=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=9B=D0=B0=D0=B11?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- works/lab-01/{Lab1.cs => Less1-ex-1.cs} | 0 works/lab-01/Less1-ex-2.cs | 16 +++++++++ works/lab-01/stage-1.cs | 47 +++++++++++++++++++++++++ 3 files changed, 63 insertions(+) rename works/lab-01/{Lab1.cs => Less1-ex-1.cs} (100%) create mode 100644 works/lab-01/Less1-ex-2.cs create mode 100644 works/lab-01/stage-1.cs diff --git a/works/lab-01/Lab1.cs b/works/lab-01/Less1-ex-1.cs similarity index 100% rename from works/lab-01/Lab1.cs rename to works/lab-01/Less1-ex-1.cs diff --git a/works/lab-01/Less1-ex-2.cs b/works/lab-01/Less1-ex-2.cs new file mode 100644 index 0000000..d3fcf33 --- /dev/null +++ b/works/lab-01/Less1-ex-2.cs @@ -0,0 +1,16 @@ +using System; + +class Program +{ + static void Main() { + Console.Write("Введите имя тренера "); + string trainerName = Console.ReadLine(); + Console.Write("Введите имя покемона "); + string pokemonName = Console.ReadLine(); + Console.Write("Введите стихию "); + string elementType = Console.ReadLine(); + Console.Write("Введите регион "); + string region = Console.ReadLine(); + Console.WriteLine($"ПАСПОРТ ПОКЕМОНА\nТренер: {trainerName}(Регион: {region})\nПокемон: {pokemonName} [Стихия: {elementType}]"); + } +} \ No newline at end of file diff --git a/works/lab-01/stage-1.cs b/works/lab-01/stage-1.cs new file mode 100644 index 0000000..d457eb9 --- /dev/null +++ b/works/lab-01/stage-1.cs @@ -0,0 +1,47 @@ +using System; + +class Program +{ + static void Main() { + Console.Write("Введите стадию развития "); + string stage = Console.ReadLine(); + Console.Write("Введите имя покемона "); + string name = Console.ReadLine(); + Console.Write("Введите вид покемона "); + string category = Console.ReadLine(); + Console.Write("Введите название первой атаки "); + string attack1Name = Console.ReadLine(); + Console.Write("Введите эффект первой атаки "); + string attack1Desc = Console.ReadLine(); + Console.Write("Введите название второй атаки "); + string attack2Name = Console.ReadLine(); + Console.Write("Введите эффект второй атаки "); + string attack2Desc = Console.ReadLine(); + Console.Write("Введите уязвимость "); + string weakness = Console.ReadLine(); + Console.Write("Введите устойчивость "); + string resistance = Console.ReadLine(); + int hp = 60; + int number = 25; + double height = 0.4; + double weight = 6.0; + int attack2Damage = 20; + int retreatCost = 1; + Console.Write($"=============================================\n" + + $"[{stage}] {name}" + " " + + $"ОЖ: {hp}\n" + + $" № {number} | Вид: {category} | Рост: {height} м | Вес: {weight} кг\n" + + $"---------------------------------------------\n" + + $"[Атака 1]: {attack1Name}\n" + + $"Эффект: {attack1Desc}\n" + + $"---------------------------------------------\n" + + $"[Атака 2]: {attack2Name}\n" + + $"Эффект:{attack2Desc}\n" + + $"Урон: {attack2Damage}\n" + + $"---------------------------------------------\n" + + $"Слабость: {weakness}\n" + + $"Сопротивление: {resistance}\n" + + $"Стоимость отступления: {retreatCost}\n"+ + $"============================================="); + } +} \ No newline at end of file