I need some guidance. I want to create a program which will count characters in words within a sentence.
I want it to output like this:
"
Please type a sentence,
"This is a sentence, okay."
The number of occurances of each word length is shown below:
1 letter(s) 1 occurance
2 letter(s) 1 occurance
3 letter(s) 0 occurances
4 letter(s) 2 occurances
etc...
Is there a special array and for loop combination to use?