Write a program that asks the user for a word or sentence and then displays the number of vowels and consonants that it contains.
a, e, i, o, ub, c, d, f, g, h, i, j, k, l, m, n, p, q, r, s, t, v, w, x, zy, because whether this is a vowel or consonant depends on the pronunciation. We will not consider this letter for this exercise and it will not appear.
computer science is a great subject
Vowels: 12
Consonants: 18
letters
Vowels: 2
Consonants: 5