Добавить works/kotlin/kotlin 4.2 (1)

This commit is contained in:
2026-09-24 09:00:10 +00:00
parent 8698a6e9cb
commit d25319c0a5
+12
View File
@@ -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")
}