diff --git a/works/lab-02/Readme.md b/works/lab-02/Readme.md index 5908eae..5199eb6 100644 --- a/works/lab-02/Readme.md +++ b/works/lab-02/Readme.md @@ -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(); }