If two or more solutions are very similar and are written in the same programming language then the first comment will be the contender.
If there are two solutions let us be civilised and post in comments if there are any flaws. I an not sure how this will work but we can figure this out as we go forward.
All the liquid SBD will be awarded to the winner.
Each solution will get an 100% up-vote from me.
Resteem and upvote to increase the stakes of the competition.
Problem Statement
The program should read a input string that contains text and break it further into paragraphs, sentences and words.
Input:
First sentence of first paragraph.
Second sentence of first paragraph.
First sentence of second paragraph.
Second sentence of second paragraph.
Output:
First sentence of first paragraph.
Second sentence of first paragraph.
First sentence of first paragraph.
First
sentence
of
first
paragraph.
Second sentence of first paragraph.
Second
sentence
of
first
paragraph.
First sentence of second paragraph.
Second sentence of second paragraph.
First sentence of second paragraph.
First
sentence
of
second
paragraph.
Second sentence of second paragraph.
Second
sentence
of
second
paragraph.
If you have any questions about the problem statement do let me know in comments and I will try to clarify your doubts.
Programming Challenge 1 : Break it down further | Ecency