generated from admin/template
Обновить works/lab-02/lab2_2.cs
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user