C#: Count a total number of vowel or consonant
Write a C# Sharp program to count the number of vowels or consonants in a string.

Sample Solution:-
C# Sharp Code:
Sample Output:
Count total number of vowel or consonant : ---------------------------------------------- Input the string : Welcome to w3resource.com The total number of vowel in the string is : 9 The total number of consonant in the string is : 12
Flowchart:

C# Sharp Practice online:
Contribute your code and comments through Disqus.
Previous: Write a program in C# Sharp to copy one string to another string.
Next: Write a program in C# Sharp to find maximum occurring character in a string.
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.