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