You have a function reversePrint, which allows you to output numbers from a list in reverse order.
fun reversePrint() {
val numbers = mutableListOf(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
for (index in numbers.lastIndex ... 0 ... 2) {
println("$index: ${numbers[index]}")
}
}
However, the function doesn't work – something is missing in it. What should you write instead of the two ellipses (...) to get the result as follows:
9: 10
7: 8
5: 6
3: 4
1: 2
Type the missing words separated by a space. Don't print full code, only two words!