End of Drive

Report a typo

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.

Sample Input 1:

Hello, my fans!

Sample Output 1:

Hello, my fans!
Note! I didn't die at the end of the Drive
Write 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).
}
___

Create a free account to access the full topic