generated from admin/template
Лабы
This commit is contained in:
@@ -14,5 +14,18 @@ int purchase = healPotion * int.Parse(Console.ReadLine());
|
||||
balance -= purchase;
|
||||
Console.WriteLine($"Общая стоймость покупки {purchase} Остаток средств на балансе {balance}");*/
|
||||
|
||||
|
||||
Console.WriteLine("Введите кол-во HP покемона");
|
||||
int hp = int.Parse(Console.ReadLine());
|
||||
if (hp<= 0)
|
||||
{
|
||||
Console.WriteLine("Покемон потерял сознание! Верните его в покебол.");
|
||||
}
|
||||
else if (21 < hp && hp > 50)
|
||||
{
|
||||
Console.WriteLine("Критическое состояние! Срочно используйте зелье!");
|
||||
}
|
||||
else if (hp > 50)
|
||||
{
|
||||
Console.WriteLine("Покемон полон сил и готов к бою!");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user