diff --git a/kotlin 4.2 1 b/kotlin 4.2 1 new file mode 100644 index 0000000..1a99b5a --- /dev/null +++ b/kotlin 4.2 1 @@ -0,0 +1,11 @@ +fun main() { + print("количество карт в одном бустере: ") + val cardsInBooster = readln().toInt() + + var totalCards = 0 + for(i in 1..cardsInBooster){ + println("[БУСТЕР] Распакована карта №$ из $cardsInBooster") + totalCards++ + } + println("общее кол-во карт: $totalCards") +} \ No newline at end of file