add lab 04 csharp

This commit is contained in:
EgorGud
2026-09-14 10:05:31 +03:00
parent 158bb68a05
commit 923d441ef2
78 changed files with 1916 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
string[] activeTeam = new string[3];
Console.WriteLine("=== РЕГИСТРАЦИЯ КОМАНДЫ ===\n");
for (int i = 0; i < activeTeam.Length; i++)
{
Console.Write($"Введите имя покемона №{i + 1}: ");
activeTeam[i] = Console.ReadLine();
}
Console.WriteLine("--- Ваша команда на этот бой ---\n");
Console.WriteLine($"№1: {activeTeam[0]}");
Console.WriteLine($"№2: {activeTeam[1]}");
Console.WriteLine($"№3: {activeTeam[2]}");