Write a program that asks the user how many words they want to input, then asks for each word one by one, and finally prints the total number of letters across all words.
3
apple
banana
cherry
The sum of the number of letters in all words is 17.
2
hello
world
The sum of the number of letters in all words is 10.
4
lobster
dog
elephant
fox
The sum of the number of letters in all words is 21.