Initializing an array

Report a typo

Create an array of integers named numbers with 100 elements. Its first element must be 1, the tenth must be 10 and the hundredth must be 100. All the other elements must be equal to 0.

Use the provided code template.

Write a program in Kotlin
fun main() {
val numbers = // put your code here

// do not touch the lines below
println(numbers.joinToString())
}
___

Create a free account to access the full topic