I have this code but it seems no matter what letter I choose it goes to if and not else:
Thanks for the helpCode:void consonant()
{
do
{
printf("Pick a letter: ");
letter=getch();
if (letter == 'a', 'e', 'i', 'o', 'u')
printf("You can't pick a vowel choose again!!\n");
else
printf("\nYou choosed %c.\n\n", letter);
valid = 1;
}
while(valid == 0);
endturn = 0;
winner = 0;
}