From eeea88256f6ba7c3543a834152cbc78ab2c4c4fb Mon Sep 17 00:00:00 2001 From: Arf <10+arf@noreply.localhost> Date: Thu, 19 Nov 2026 07:25:11 +0000 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20works/here/2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- works/here/2 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 works/here/2 diff --git a/works/here/2 b/works/here/2 new file mode 100644 index 0000000..20a99b1 --- /dev/null +++ b/works/here/2 @@ -0,0 +1,15 @@ +fun main() { + val hp = 35 + val level = 12 + if (hp <= 0) { + println("Покемон повержен") + } + else if (hp < 50) { + println("Покемон ранен, нужно лечение") + } + else { + println("Покемон в порядке") + } + val rank = if (level < 10) "Новичок" else if (level < 30) "Боец" else "Чемпион" + println(rank) +} \ No newline at end of file