From 4e190bd824364d4aaf162ef0532bb1248755f414 Mon Sep 17 00:00:00 2001 From: Obeme228 Date: Mon, 21 Sep 2026 08:31:14 +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=204.1(1)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- works/kotlin 4.1(1) | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 works/kotlin 4.1(1) diff --git a/works/kotlin 4.1(1) b/works/kotlin 4.1(1) new file mode 100644 index 0000000..02d0a52 --- /dev/null +++ b/works/kotlin 4.1(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") +}