Wednesday 1 February 2017

Sentence Sorting...

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 

Goldbach Number ISC 2018

Question: A Goldbach number is a positive even integer that can be expressed as the sum of two odd primes. Note: All even integer numbers ...