From 9bdffdab1277e934fb9e73a850e63931dfb4c143 Mon Sep 17 00:00:00 2001 From: XomRK Date: Fri, 23 Oct 2026 16:45:39 +0000 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B4=D0=B0=D0=BB=D0=B8=D1=82=D1=8C=20wo?= =?UTF-8?q?rks/lab-04?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- works/lab-04 | 50 -------------------------------------------------- 1 file changed, 50 deletions(-) delete mode 100644 works/lab-04 diff --git a/works/lab-04 b/works/lab-04 deleted file mode 100644 index 2040d9b..0000000 --- a/works/lab-04 +++ /dev/null @@ -1,50 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace ConsoleApp1 -{ - internal class Program - { - public static void Main(string[] args) - { - Console.WriteLine("=== РЕГИСТРАЦИЯ КОМАНДЫ ==="); - string[] activeTeam = new string[3]; - for (int i = 0; i < 3; i++) - { - Console.Write($"Введите имя покемона №{i + 1}: "); - activeTeam[i] = Console.ReadLine(); - } - - Console.WriteLine("--- Ваша команда на этот бой ---"); - for (int j = 0; j < 3; j++) - { - Console.WriteLine($"{j + 1}. {activeTeam[j]}"); - } - Console.WriteLine("\n=== ИНВЕНТАРЬ ТРЕНЕРА ==="); - List backpack = new List(){}; - backpack.Add("Зелье HP"); - backpack.Add("Покебол"); - backpack.Add("Антидот"); - Console.WriteLine($"Вы положили вещи в сумку. Предметов в инвентаре: {backpack.Count}"); - - backpack.Remove("Покебол"); - - Console.WriteLine("Вы использовали один Покебол для поимки дикого покемона!"); - Console.WriteLine($"Обновленный инвентарь. Осталось предметов: {backpack.Count}"); - - Console.WriteLine(); - Console.WriteLine("--- Содержимое вашей сумки ---"); - - foreach (string item in backpack) { - Console.WriteLine($"[Предмет] -> {item}"); - } - Console.WriteLine("============================="); - Console.ReadLine(); - - } - } -} \ No newline at end of file