generated from admin/template
Добавить works/kotlin/kotlin 4.1
This commit is contained in:
@@ -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")
|
||||
}
|
||||
Reference in New Issue
Block a user