generated from admin/template
Обновить works/lab-02/Readme.md
This commit is contained in:
@@ -96,3 +96,38 @@
|
||||
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
|
||||
Reference in New Issue
Block a user