From d25319c0a551563a8da37a6886f6616a5d077191 Mon Sep 17 00:00:00 2001 From: salfetka5 Date: Thu, 24 Sep 2026 09:00:10 +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=20(1)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- works/kotlin/kotlin 4.2 (1) | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 works/kotlin/kotlin 4.2 (1) diff --git a/works/kotlin/kotlin 4.2 (1) b/works/kotlin/kotlin 4.2 (1) new file mode 100644 index 0000000..c8262df --- /dev/null +++ b/works/kotlin/kotlin 4.2 (1) @@ -0,0 +1,12 @@ +fun main(){ + print("Количество карт в одном бустере: ") + val cardsInBooster = readln().toInt() + + var totalCards = 0 + for(i in 1..cardsInBooster){ + println("[БУСТЕР] Распакована карта №$i из $cardsInBooster") + totalCards++ + } + println("общее кол-во карт: $totalCards") + +} \ No newline at end of file