0
I wanna display the word count, character count and digit count for a given sentence.
For Example: Given sentence: We want to buy 10 pencils and 20 books. Out of the program: word count =9 char count=27 digit count=4
2 Antworten
0
thanks!
- 1
there is functions which check if a character of string is an number or letter. enough check the string and increment the variable.
and for check amount of words enough count the number of character spaces e subtract one