Write code which uses a scope function to exchange the values of two string variables.
Scope functions: apply and also
Code for using a scope function
Report a typo
Sample Input 1:
8
11Sample Output 1:
11
8Write a program in Kotlin
fun main() {
var a = readln()
var b = readln()
// Write your code here
println(a)
println(b)
}
___
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.