5
Answers

reads strings from the user.

Write a program that reads strings from the user. If the input is empty, the program stops reading input and halts. For each non-empty input it splits the string input by whitespaces and prints each part of the string on a new line.
 
> once upon a time
once
upon
a
time
> a little program
a
little
program
> halted
halted
>
Answers (5)