Count no. of lines and no. of sentences in a paragraph

between
count
lines

#1

Well, I want to know how can you distinguish between lines & sentences.


#2

Well,sentences end with a ‘.’ while lines end with a ’
’ character… Yep thats it.


#3

Hum is that a programming problem in codechef? If so could you provide the code for the problem ?.. But I’ll try to explain… Sentences end in “.” and are followed by content on the same line or with words at starting position of the next line if there’s no more space in the current line… Paragraphs usually start with 4 or 5 spaces at the beginning of the line (correct me if I’m wrong)… If it’s a codechef problem give me the code… I would like to see it


#4

@ALL
Consider this example
“Ram height is 5.6”
In this what is the solution???


#5

Correct problem statement should define what is paragraph and what is sentence, look at this one - http://codeforces.com/problemset/problem/70/B .


#6

Actually, it is slightly more complicated. Sentences can also end with a ‘!’ or a ‘?’. And maybe you should consider that this comment contains only three sentences, but five characters that end a sentence!


#7

Ouch!You got me there! Dunno why I didn’t think of that xD


#8

Sorry I left the page open before and there were no answers… But still wanting the problem code


#9

Yeah!!
i am clear