Ryan Gosling was upset when he read the discussions about Drive's finale. He is absolutely sure that his character didn't die after all that happened in the movie. And he decided to write a small program that adds the phrase "Note! I didn't die at the end of the Drive" in a new line after each of his own messages on the Instagram. Please help Ryan using a scope function.
Scope functions: summary
End of Drive
Report a typo
Sample Input 1:
Hello, my fans!Sample Output 1:
Hello, my fans!
Note! I didn't die at the end of the DriveWrite a program in Kotlin
fun main() {
// Define variable message and give it a value from standard input
val message =
// Write here scope functions that adds needed phrase
println(message).
}
___
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.