This commit is contained in:
2026-09-04 13:18:21 +03:00
parent c6e534758c
commit 456a2b0fc5
+30 -1
View File
@@ -1,8 +1,37 @@
int damage = int.Parse(Console.ReadLine());
/* less-1.1
int damage = int.Parse(Console.ReadLine());
int lvl = int.Parse(Console.ReadLine());
int totalDamage = damage + (lvl * 5);
Console.WriteLine($"=== Прокачка покемона === \n ---- {totalDamage} ----");
*/
/* less-1.2
int balanceTran = 1500;
int potionCost = 200;
int amountPotion = int.Parse(Console.ReadLine());
int result = amountPotion * potionCost;
Console.WriteLine(result);
*/
int hp = int.Parse(Console.ReadLine());
if (hp <= 0)
{
Console.WriteLine("Покемон потерял сознание! Верните его в покебол.");
}
else if (1 <= hp && hp <= 20)
{
Console.WriteLine("Критическое состояние! Срочно используйте зелье!");
}
else if (21 <= hp && hp <= 50)
{
Console.WriteLine("Покемон ранен, будьте осторожны");
}
else
{
Console.WriteLine("Покемон полон сил и готов к бою!");
}