Counting vowels and consonants in a sentence

In this recipe, you will learn how to count the number of vowels and consonants in an entered sentence. The vowels are a, e, i, o, and u, and the rest of the letters are consonants. We will use ASCII values to identify the letters and their casing:

Figure 2.11

The blank spaces, numbers, special characters, and symbols will simply be ignored. 

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset