Computer Science, asked by katyaynisingh10icse, 5 months ago

write a program to enter find out the number of word appear in sentence​

Answers

Answered by sanjeevnishu914
2

Answer:

  1. 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