From 6e939a1575c96d3466fd2d64153039be7fb1c0c6 Mon Sep 17 00:00:00 2001 From: adam1ch Date: Fri, 9 Oct 2026 14:46:59 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=BB=D0=B0=D0=B1=D0=BE=D1=80=D0=B0=D1=82?= =?UTF-8?q?=D0=BE=D1=80=D0=BD=D1=8B=D1=85=20=D1=80=D0=B0=D0=B1=D0=BE=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- works/csharp/lab-01/Readme.md | 33 ++++++++++++++++++++++++--------- 1 file changed, 24 insertions(+), 9 deletions(-) diff --git a/works/csharp/lab-01/Readme.md b/works/csharp/lab-01/Readme.md index 388f028..70642c7 100644 --- a/works/csharp/lab-01/Readme.md +++ b/works/csharp/lab-01/Readme.md @@ -3,13 +3,28 @@ * **Студент:** [ФИО] * **Вариант / Карточка:** [Например: #025 Pikachu] ---- -## Ключевой код -```csharp -// Самая важная часть реализации (методы, структуры, логика) -public class Card -{ - public string Name { get; set; } - public int Hp { get; set; } -} +string pokemonName = "Чармандер"; +string elementType = "Огонь"; +int level = 1; +int hp = 95; + +Console.WriteLine($"=== БАЗА ДАННЫХ ПОКЕМОНОВ === \nПокемон: {pokemonName}\nСтихия: {elementType}\nУровень: {level} | HP:{hp}"); +``` + +//task 2 +string trainerName = Console.ReadLine(); +string pokemonName = Console.ReadLine(); +string elementType = Console.ReadLine(); +string regionName = Console.ReadLine(); + +Console.WriteLine($"Введите имя тренера: {trainerName}"); +Console.WriteLine($"Введите имя покемона: {pokemonName}"); +Console.WriteLine($"Введите стихию: {elementType}"); +Console.WriteLine($"Введите регион: {regionName}"); +Console.WriteLine(""); +Console.WriteLine("****************************************"); +Console.WriteLine("ПАСПОРТ ПОКЕМОНА"); +Console.WriteLine($"Тренер: {trainerName} (Регион: {regionName})"); +Console.WriteLine($"Покемон: {pokemonName} [Стихия: {elementType}]"); +Console.WriteLine("****************************************"); \ No newline at end of file