Program to count the total number of words in a stringExplanationIn this program, we need to count the words present in the string. Total number of words present in the string is 7. Algorithm
SolutionPythonOutput: Total number of words in the given string: 7 COutput: Total number of words in the given string: 7 JAVAOutput: Total number of words in the given string: 7 C#Output: Total number of words in the given string: 7 PHPOutput: Total number of words in the given string: 7
Next Topic#
|