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