Accept
a paragraph Of text cons of sentences that are terminated by either ' . ' (fun stop), '!' (exclamation mark) or a '?' (question mark). Assume that there
can be maximum 10 sentences in a paragraph. Write a program to arrange the
sentences n increasing order of their number of words.
Example :
INPUT : Please come and attend the party. Hello! How are you?
OUTPUT :
Hello = 1
How are you = 3
Please come and attend the party = 6
Example :
INPUT : Please come and attend the party. Hello! How are you?
OUTPUT :
Hello = 1
How are you = 3
Please come and attend the party = 6