Restore the code that prints squares of numbers.
Memory-efficient data structures in Android
Squares
Report a typo
Reorder lines using drag or arrows. Adjust indentation with left buttons
squares.put(i, i * i)
val squares = SparseIntArray()
for (i in 0 until 5)
println(squares.keyAt(i).toString() + "² = " + squares.valueAt(i))
for (i in 0 until squares.size())
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.