generated from admin/template
Added lab 3 and lab 4
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
|
||||
public class Test
|
||||
{
|
||||
public static void Main()
|
||||
{
|
||||
string[] activeTeam = new string[3];
|
||||
|
||||
Console.WriteLine("=== РЕГИСТРАЦИЯ КОМАНДЫ ===");
|
||||
for (int i = 0; i < activeTeam.Length; i++)
|
||||
{
|
||||
Console.Write($"Введите имя покемона №{i + 1}: ");
|
||||
activeTeam[i] = Console.ReadLine();
|
||||
}
|
||||
|
||||
Console.WriteLine();
|
||||
Console.WriteLine("--- Ваша команда на этот бой ---");
|
||||
Console.WriteLine($"1. {activeTeam[0]}");
|
||||
Console.WriteLine($"2. {activeTeam[1]}");
|
||||
Console.WriteLine($"3. {activeTeam[2]}");
|
||||
Console.WriteLine();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user