What is Vowel? and write a C program to find whether given character Vowel or not
What is Vowel?
The characters such as 'a', 'e', 'i', 'o', 'u' are called vowels.
C program to find whether given character is a Vowel or not:
printf("Please enter a character\n");
if (c == 'a' || c == 'A' || c == 'e' || c == 'E' || c == 'i' || c == 'I' || c =='o' || c=='O' || c == 'u' || c == 'U')
printf("\nThe entered character %c is a vowel.\n", c);
printf("\nThe entered character %c is not a vowel.\n", c);
Please enter a character
The entered character a is a vowel.
1. Online Compilers - Compile & Run your C/C++ programs:
2. Ask your questions or clarify your/others doubts from,