diff --git a/works/lab-02/src/lab2_2.1.cs b/works/lab-02/src/lab2_2.1.cs index 8c91bc4..d0d1283 100644 --- a/works/lab-02/src/lab2_2.1.cs +++ b/works/lab-02/src/lab2_2.1.cs @@ -4,6 +4,23 @@ public class lab2_2_1 { static void Main(string[] args) { - int x = 10; + 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("Покемон потерял сознание! Верните его в покебол."); + } } } \ No newline at end of file