Добавление лабораторных работ

This commit is contained in:
2026-10-09 14:52:15 +03:00
parent ce97cd9545
commit 6e939a1575
+24 -9
View File
@@ -3,13 +3,28 @@
* **Студент:** [ФИО] * **Студент:** [ФИО]
* **Вариант / Карточка:** [Например: #025 Pikachu] * **Вариант / Карточка:** [Например: #025 Pikachu]
---
## Ключевой код string pokemonName = "Чармандер";
```csharp string elementType = "Огонь";
// Самая важная часть реализации (методы, структуры, логика) int level = 1;
public class Card int hp = 95;
{
public string Name { get; set; } Console.WriteLine($"=== БАЗА ДАННЫХ ПОКЕМОНОВ === \nПокемон: {pokemonName}\nСтихия: {elementType}\nУровень: {level} | HP:{hp}");
public int Hp { get; set; } ```
}
//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("****************************************");