generated from admin/template
done ex.1
This commit is contained in:
@@ -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]}");
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user