This commit is contained in:
328p
2026-09-30 09:39:54 +03:00
parent a2e71a67c9
commit 8da5b7e1f1
5 changed files with 198 additions and 1 deletions
+14 -1
View File
@@ -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("Покемон полон сил и готов к бою!");
}