Code for using a scope function

Report a typo

Write code which uses a scope function to exchange the values of two string variables.

Sample Input 1:

8
11

Sample Output 1:

11
8
Write a program in Kotlin
fun main() {
var a = readln()
var b = readln()
// Write your code here

println(a)
println(b)
}
___

Create a free account to access the full topic