Обновить works/lab-02/Readme.md

This commit is contained in:
2026-09-03 14:28:52 +00:00
parent 5406455cdb
commit 8accc1701a
-30
View File
@@ -8,33 +8,3 @@
## Ключевой код ## Ключевой код
```csharp ```csharp
// Самая важная часть реализации (методы, структуры, логика) // Самая важная часть реализации (методы, структуры, логика)
using System;
class lab2 {
static void Main(string[] args)
{
Console.OutputEncoding = System.Text.Encoding.UTF8;
string trainerName, regionName, pokemonName, elementType;
trainerName = regionName = pokemonName = elementType = string.Empty;
try
{
Console.Write("Введите имя тренера: ");
Console.WriteLine(trainerName = Convert.ToString(Console.ReadLine()));
Console.Write("Введите имя покемона: ");
Console.WriteLine(pokemonName = Convert.ToString(Console.ReadLine()));
Console.Write("Введите стихию: ");
Console.WriteLine(elementType = Convert.ToString(Console.ReadLine()));
Console.Write("Введите регион: ");
Console.WriteLine(regionName = Convert.ToString(Console.ReadLine()));
}
catch
{
Console.WriteLine("НЕВЕРНЫЙ ФОРМАТ ВВОДА");
}
Console.WriteLine("\n*****************************************");
Console.WriteLine(" ПАСПОРТ ПОКЕМОН");
Console.WriteLine($"Тренер: {trainerName} (Регион: {regionName})");
Console.WriteLine($"Покемон: {pokemonName} [Стихия: {elementType}]");
Console.WriteLine("*****************************************");
}
}