I wrote a program with a user-defined function that I want to tell me if the input letter is a vowel or not. When I run it and input a letter, it always returns that the letter is a vowel and I can't figure out why.
Here's what I have:
You wrote the conditional as if you were writing plain English. Sorry, you have to repeat the variable and the comparison operator once for each letter.
if (letter == 'A' || letter == 'a' || letter == 'E' ...
In time you'll learn to do this check more efficiently.