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