From 7812469e4ee5cdcc2d87bb4e0b5ebf9667515bd6 Mon Sep 17 00:00:00 2001 From: 328p <328p@BTK.MAIN> Date: Mon, 7 Sep 2026 15:37:41 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=20lesson=202?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- works/lab-02/lesson2.1.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 works/lab-02/lesson2.1.txt diff --git a/works/lab-02/lesson2.1.txt b/works/lab-02/lesson2.1.txt new file mode 100644 index 0000000..4565a1b --- /dev/null +++ b/works/lab-02/lesson2.1.txt @@ -0,0 +1,15 @@ +fun main() { + print ("Ведите номер текущего хода: ") + val currentTurnInput = readln() + print ("Введите количество энергии на столе: ") + val energyInput = readln() + print("Введите коэффицент усиления атаки: ") + val multiplierInput = readln() + val currentTurn = currentTurnInput.toInt() + val energy = energyInput.toInt() + val multiplier = multiplierInput.toDouble() + println("=== ИНИЦИАЛИЗАЦИЯ ПАРАМЕТРОВ ХОДА ===") + println("Текущий ход: $currentTurn ") + println("Доступно энергии: $energy") + println("Множитель урона: $multiplier") +} \ No newline at end of file