Загрузить файлы в «works»

This commit is contained in:
2026-10-01 08:02:00 +00:00
parent 211afc825c
commit 440d31767a
4 changed files with 160 additions and 0 deletions
+21
View File
@@ -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]}");
}
}