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

This commit is contained in:
2026-10-01 09:03:22 +00:00
parent 35c10a8532
commit 3acd1c9edd
+36 -1
View File
@@ -95,4 +95,39 @@
Console.WriteLine("Неизвестная команда! Вы пропустили ход.");
break;
}
```
```
## лбаортарторка 5 (доделать)
using system;
namespace lab5
{
iternal class Program
{
static void Main(string[] args)
//задание 1
Console.WriteLine("=== ПОКЕЦЕНТР: ЛЕЧЕНИЕ ===");
int pokemonHp = 20;
Console.WriteLine($"Здоровье до лечения: {pokemonHp} HP.")
HealPokemon(ref pokemonHP);
Console.WriteLine($"Здоровье после лечения: {pokemonHP} HP.");
Console.WriteLine();
//Задание 2
Console.WriteLine("=== ИССЛЕДОВАНИЕ ЛОКАЦИИ ===");
Console.WriteLine("Вы зашли в высокую траву...");
SearchBushes(out string foundPokemon, out int pokemonLevel);
Console.WriteLine($"Шорох! Из кустов появляется дикий {foundPokemon} (Уровень: {pokemonLevel})!");
Console.WriteLine();
Console.WriteLine("=== РЕГИСТРАЦИЯ НА ТУРНИР ===");
double stadiumDifficulty = 1.5;
RegisterTournament(in stadiumDifficulty, "Бульбазавр", "Чармандер");
Console.WriteLine("-----------------------------");
Register