How to learn the whole Kotlin per one task

Report a typo

Write a program that reads five words from the standard input and outputs the words in one line. In the output, the words should be separated by a single space.

Sample Input 1:

Never
gonna
give
you
up

Sample Output 1:

Never gonna give you up

Sample Input 2:

Never
gonna
let
you
down

Sample Output 2:

Never gonna let you down

Sample Input 3:

Never
gonna
run
around
and

Sample Output 3:

Never gonna run around and
Write a program in Kotlin
fun main() {
// put your code here
}
___

Create a free account to access the full topic