hi. everyone ;
can anybody help me or can give me a sample program using c language on how to count sentences in a paragraph...
hi. everyone ;
can anybody help me or can give me a sample program using c language on how to count sentences in a paragraph...
How about you put in the effort to write such a program? This is not a "give me code for free" and it is certainly not a "do my homework" site (as doing homework for people is against site policy). This is a site where you can get help if you have tried to solve your own problem (including homework) and run into a specific problem. But the prerequisite is that you provided evidence of having TRIED first.
All you need to do is scan input and detect the beginning of a paragraph, the end of a paragraph, and the end of a sentence. At the beginning of a new paragraph, set the sentence count to zero. Each time the end of a sentence is detected, increment the count. At the end of the paragraph, write out the count.
It is probably 10 lines of code, or less, assuming text input. Maybe 15 lines if the input is formatted in some way (say, a word document).
You could probably write such code in less time than it took you to sign up at this site, and create your first post.
thanks for your advice....pardon me if take much of your time. I am a beginner to programming and making this activity is a stone for me without someone to explain
i hope you can understand me. thank you and and have a great day.
Start with reading input from the keyboard; think about what a sentence is and what you need to find in the input.