Question: Write code to input a sentence from the user and output the number of characters in the sentence as well as the estimated number of
Write code to input a sentence from the user and output the number of characters in the sentence as well as the estimated number of words in the sentence excluding leading or trailing spacesHint: You can estimate the number of words by counting the number of spaces in the sentence.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
