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
>

Avnish KumarRank #1,003 · 2K reputationPosted Mar 28, 2020, 7:27 PM EDT
Vinay SinghRank #604 · 4K reputationPosted Mar 26, 2020, 10:34 PM EDT
Mngaro Mwazenje72 reputationPosted Mar 26, 2020, 10:52 PM EDT
Vinay SinghRank #604 · 4K reputationPosted Mar 26, 2020, 11:17 PM EDT
Jignesh KumarRank #91 · 22.9K reputationPosted Mar 26, 2020, 11:58 PM EDT