generated from admin/template
С# lesson2 - block1
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
/*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($"Итоговое значение аттаки {finalAttack}");
|
||||
|
||||
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