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

Count Number of Vowels and Consonants in a Sentence

In this program, we will learn to count number of vowels and consonants in a sentence. Here we will be using the switch case and while loop to implement this example.

Program:

 

Output:

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

Number of Vowels are : 9
Number of Consonants are : 11

Leave a Comment

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

Scroll to Top