From ea4b9ec7099824ad21367ac9533627bdfb159521 Mon Sep 17 00:00:00 2001 From: salfetka5 Date: Thu, 24 Sep 2026 08:59:13 +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.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- works/kotlin/kotlin 4.1 | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 works/kotlin/kotlin 4.1 diff --git a/works/kotlin/kotlin 4.1 b/works/kotlin/kotlin 4.1 new file mode 100644 index 0000000..02471a6 --- /dev/null +++ b/works/kotlin/kotlin 4.1 @@ -0,0 +1,11 @@ +fun main(){ + var deckSize = 60 + var cardsInHand = 0 + println("Сколько карт взять в начале матча?") + val targetDrawInput = readln().toInt() + while(cardsInHand < targetDrawInput){ + cardsInHand++ + deckSize-- + } + println("[ДОБОР] Взята карта No $cardsInHand в руке $cardsInHand в колоде осталось $deckSize") +} \ No newline at end of file