How to make numbered list in Kotlin

fun main() {
    val items = listOf("Item 1", "Item 2", "Item 3", "Item 4", "Item 5")

    for ((index, item) in items.withIndex()) {
        println("${index + 1}. $item")
    }
}