C++ program to Count Number of Vowels Consonants and Spaces in a Sentence

Count Number of Vowels, Consonants and Spaces in a Sentence

Here you will get a C++ program to count Number of Vowels Consonants and Spaces in a Sentence. Here we will be using the switch case and while loop to implement this example.

Program code to Count Number of Vowels Consonants and Spaces in a Sentence

Output

Enter an Alphabet to check vowel or consonant : Welcomes to CodeRevise

Number of Vowels are : 9

Number of Consonants are : 11

Number of Spaces are : 2

 

 

Check out our other C++ programming Examples

 

 

 

 

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top