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 KumarPosted Mar 28, 2020, 11:27 PM
Jignesh KumarPosted Mar 27, 2020, 3:58 AM
Vinay SinghPosted Mar 27, 2020, 3:17 AM
Mngaro MwazenjePosted Mar 27, 2020, 2:52 AM
Vinay SinghPosted Mar 27, 2020, 2:34 AM