From f1464930071650a8e0ee6e134f407213c0d9cbe6 Mon Sep 17 00:00:00 2001 From: Rulet13 Date: Fri, 25 Sep 2026 10:23:59 +0000 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20works/lab-02/lab2=5F2.cs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- works/lab-02/lab2_2.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/works/lab-02/lab2_2.cs b/works/lab-02/lab2_2.cs index 5635077..5a7f5ae 100644 --- a/works/lab-02/lab2_2.cs +++ b/works/lab-02/lab2_2.cs @@ -10,7 +10,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(); }