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