Arrange the lines

Report a typo

Arrange the code lines in the correct order so that the code compiles without errors.

Reorder lines using drag or arrows. Adjust indentation with left buttons
                val x = 10
              
                }
              
                }
              
                val y = 20 + x
              
                val anonymousObject = object {
              
                fun printSum() {
              
                println("Sum: ${x + y}")
              
___

Create a free account to access the full topic