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

15th Sep 2016, 1:35 AM
Poe Phyu Phyu Lwin
2 Antworten
0
thanks!
9th Dec 2016, 3:39 PM
Poe Phyu Phyu Lwin
- 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
15th Sep 2016, 4:50 PM
Alan Vasconcelos
Alan Vasconcelos - avatar