From df7e8cbdb85f5ded8b6b50f97da2ed610aec31ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B0=D1=81=D1=82=D0=B8=D0=BE=20=D0=92=D1=8F=D1=87?= =?UTF-8?q?=D0=B5=D1=81=D0=BB=D0=B0=D0=B2?= Date: Mon, 14 Sep 2026 10:19:41 +0300 Subject: [PATCH] done ex.1 --- works/lab-04/ex.1.cs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 works/lab-04/ex.1.cs diff --git a/works/lab-04/ex.1.cs b/works/lab-04/ex.1.cs new file mode 100644 index 0000000..b3d3da2 --- /dev/null +++ b/works/lab-04/ex.1.cs @@ -0,0 +1,21 @@ +namespace DefaultNamespace; + +public class ex_1 +{ + static void Main(string[] args) + { + Console.WriteLine("=== РЕГИСТРАЦИЯ КОМАНДЫ ==="); + string[] pokemonNames = new string[3]; + for (int i = 0; i < pokemonNames.Length; i++) + { + Console.Write($"Видите имя покемона №{i + 1}: "); + pokemonNames[i] = Console.ReadLine(); + } + Console.WriteLine(); + Console.WriteLine("--- Ваша команда на этот бой ---"); + Console.WriteLine($"1. {pokemonNames[0]}"); + Console.WriteLine($"2. {pokemonNames[1]}"); + Console.WriteLine($"1. {pokemonNames[0]}"); + + } +} \ No newline at end of file