Ryan Gosling's band want to beautifully print their own songs titles. They want to check the title length, and if it is more than 15 symbols, add to this title the prefix "Our long song: " and make it uppercase; otherwise, add "Our short song: " and make it lowercase. Using the scope function with, realize this idea for these cool guys and output the result.
Scope functions: summary
Songs to print
Report a typo
Sample Input 1:
Pa Pa PowerSample Output 1:
our short song: pa pa powerWrite a program in Kotlin
fun main() {
val title = readln()
// Write your scope function here
}
___
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.