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

This commit is contained in:
2026-09-25 10:23:43 +00:00
parent 393ea9c65d
commit 65818d6414
+3 -3
View File
@@ -19,9 +19,9 @@ public class lab2
int pokemonBaseAttack, pokemonLevel;
Console.WriteLine("=== Прокачка покемона ===");
Console.Write("Введите значение базовой атаки: ");
Console.WriteLine(pokemonBaseAttack = int.Parse(Console.ReadLine()));
pokemonBaseAttack = int.Parse(Console.ReadLine());
Console.Write("Введите количество полученных уровней: ");
Console.WriteLine(pokemonLevel = int.Parse(Console.ReadLine()));
pokemonLevel = int.Parse(Console.ReadLine());
Console.WriteLine($"Итоговая атака покемона = {pokemonBaseAttack + (pokemonLevel * 5)} (Базовая атака + (Уровни × 5))");
}
@@ -41,7 +41,7 @@ public class lab2
Console.WriteLine($"Текущий баланс средств Тренера: {trainerBalance}");
Console.WriteLine($">> стоимость зелья лечени = {potionPrice} монет <<");
Console.Write("Введите количество покупаемых зелий: ");
Console.WriteLine(potionBuyAmount = int.Parse(Console.ReadLine()));
potionBuyAmount = int.Parse(Console.ReadLine());
Console.WriteLine($"Успешная покупка на сумму {potionPrice * potionBuyAmount} монет. Ваш остаток {trainerBalance - (potionPrice * potionBuyAmount)}.");
Console.ReadKey();
}