im making a samll program that counts the number of vowels in a given word and it works on words that dont have repeated vowels but when a word gets too big or repeats a vowel the number is incorrect.im not too sure what is wrong but some help would be much appreciated
program i made:
i tried checking if each letter was in the vowel array and i expected it to work but it resulted in the problem stated above
Robert Kerr is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.