From 92ee66d16973b3e015690bb817bc8666daca475d Mon Sep 17 00:00:00 2001 From: salfetka5 Date: Thu, 24 Sep 2026 09:07:27 +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/kotlin/kotlin=204.2=202?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- works/kotlin/kotlin 4.2 2 | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 works/kotlin/kotlin 4.2 2 diff --git a/works/kotlin/kotlin 4.2 2 b/works/kotlin/kotlin 4.2 2 new file mode 100644 index 0000000..aac1bb9 --- /dev/null +++ b/works/kotlin/kotlin 4.2 2 @@ -0,0 +1,9 @@ +fun main() { + var energyReserve = 10 + + for (i in energyReserve downTo 2 step 2) { + println("[РАСПРЕДЕЛЕНИЕ] Передано 2 энергии. В запасе осталось: ${i - 2}") + } + + println("[КОНЕЦ] Запас энергии исчерпан.") +} \ No newline at end of file