Mngaro Mwazenje

Mngaro Mwazenje

  • NA
  • 80
  • 13.1k

reads strings from the user.

Mar 27 2020 2:23 AM
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)