From d840f719a3958a9eb76181e0a93cc6dff829a078 Mon Sep 17 00:00:00 2001 From: salfetka5 Date: Thu, 24 Sep 2026 08:58:42 +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=201?= 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