generated from admin/template
коммит хурма
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
namespace hurma;
|
||||
|
||||
class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
//Console.WriteLine("=== Прокачка покемона ===");
|
||||
//Console.WriteLine("Введите базовое значение атаки покемона");
|
||||
//int attack = int.Parse(Console.ReadLine());
|
||||
//Console.WriteLine("Количество полученных уровней:");
|
||||
//int levels = int.Parse(Console.ReadLine());
|
||||
//int finalAttack = attack + (levels * 5);
|
||||
//Console.WriteLine("Итоговое значение атаки:");
|
||||
|
||||
int balance = 1500;
|
||||
int healPotion = 200;
|
||||
Console.WriteLine($"Текущий баланс {balance}");
|
||||
Console.WriteLine($"Введите кол-во приобритаемых зелий");
|
||||
int purchase = healPotion * int.Parse(Console.ReadLine());
|
||||
balance -= purchase;
|
||||
Console.WriteLine($"Общая стоймость покупки {purchase} Остаток средств на балансе {balance}");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user