Write code to read a line of input from the user and print the words of that

Question:

Write code to read a line of input from the user and print the words of that line in sorted order, without removing duplicates. For example, the program output might look like the following:

Type a message to sort: to be or not to be that is the question Your message sorted: be be is not or question that the to to

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: