Question: Write a program called count _ char _ type.c that reads a sequence of alphabetical characters from standard input and prints the count of consonants
Write a program called countchartype.c that reads a sequence of alphabetical characters from standard input and prints the count of consonants and vowels in the sequence.
For example, if we have the sequence
I love COMP
The vowels in the sequence are IoeO
the consonants in the sequence are lvCMP and since along with any whitespace are not in the English alphabet they are ignored.
In this case, the program would output:
Number of vowels:
Number of consonants:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
