Rules of the Gig :
- You can use any programming language to write the program.
- The code should be available on Github on a public repo. Better to make this as a single file program.
- When copy pasted from Github into https://www.codechef.com/ide the code should execute and return the results.
- Share the link to github in the comments.
- 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.