Write a program to input a sentence and a word. Count how many times the word occurs
in the sentence as a full word or as the part of a word. Print the sentence and number of
words. (Assume all the characters in the sentence and word are in lowercase).
Example: Input: there is the cloud and then the rainbow
Word: the
Output:
The sentence = there is the cloud and then the rainbow
Number of words = 4
Answers
Answered by
1
Answer:
That's the solution of the program
Attachments:
Similar questions