Problem Statement - Counting words in a text input even if it is not well formed
Write a program to count number of words even when there might be extra spaces between words and extra punctuation marks. Any alphabets or numbers written contiguously will be counted as words. For. e.g. “21st Century” are two words and “21 st century systems ?” are four words. ? is not counted as word while 21 is counted as a word.
sunmitra| Created: 17-Jan-2018 | Updated: 3-Mar-2018|