Variable exchange

Report a typo

What does this code return to console?

fun main() {
    var a = 10
    var b = 15
    a = b.also {b = a}
    print(b - a)
}
Enter a number
___

Create a free account to access the full topic