write a program to enter find out the number of word appear in sentence
Answers
Answered by
2
Answer:
- Take a string as input.
2. Using for loop search for a empty space in between the words in the string.
3. Consecutively increment a variable. This variable gives the count of number of words.
Explanation:
...
Similar questions