i have the same problem too.. the output would be like this:
*******************
Enter a word: Denie
Enter a letter: E
the number of occurrence of the letter E is 2....