C program to count vowels in a string

Q: How to find the vowels count of a given text by using switch in C program?

This C program is used to find the number of vowels in your given text by using a switch statement. Initially checking the character of text separately and match with case value. If the character matches with the condition, then increment by one in the vowel count or ignore the character. Finally print the number of vowels present in the given input text.