From 0ae8ed926b25701813fa1154b0db6db356793214 Mon Sep 17 00:00:00 2001 From: salfetka5 Date: Tue, 8 Sep 2026 11:23:38 +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-lab2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- works/kotlin-lab2 | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 works/kotlin-lab2 diff --git a/works/kotlin-lab2 b/works/kotlin-lab2 new file mode 100644 index 0000000..f84447c --- /dev/null +++ b/works/kotlin-lab2 @@ -0,0 +1,18 @@ +fun main() { + println() + println("=== ИНИЦИАЛИЗАЦИЯ ПАРАМЕТРОВ ХОДА ===") + + print("текущий ход: ") + val currentTurnInput = readln() + + print("кол-во энергии: ") + val energyInput = readln() + + print("коэффицент усиления атаки: ") + val multiplierInput = readln() + + val currentTurn: Int = currentTurnInput.toInt() + val energy: Int = energyInput.toInt() + val multiplier: Double = multiplierInput.toDouble() + +} \ No newline at end of file