Files
prog-mastio/works/lab-02/src/lab2_2.1.cs
T
2026-09-07 22:31:07 +03:00

26 lines
789 B
C#

namespace DefaultNamespace;
public class lab2_2_1
{
static void Main(string[] args)
{
int hp = int.Parse(Console.ReadLine());
if (hp >= 50)
{
Console.WriteLine("Покемон полон сил и готов к бою!");
}
else if (hp >= 21 && hp <= 50)
{
Console.WriteLine("Покемон ранен, будьте осторожны.");
}
else if (hp >= 1 && hp <= 20)
{
Console.WriteLine("Критическое состояние! Срочно используйте зелье!");
}
else
{
Console.WriteLine("Покемон потерял сознание! Верните его в покебол.");
}
}
}