That program output (the chr is not a vowel ) everytime !! even if it's vowel
#include <stdio.h>
#include <conio.h>
int main()
{
char ch;
printf("Input a character\n");
scanf_s("%c", &ch);
switch (ch)
{
case 'a':
case 'A':
case 'e':
case 'E':
case 'i':
case 'I':
case 'o':
case 'O':
case 'u':
case 'U':
printf("%c is a vowel.\n", ch);
break;
default:
printf("%c is not a vowel.\n", ch);
}
_getch();
return 0;
}