Question: 11. Write a program that counts the numbers of the given consonants (B, b, W, W, X, x, Z, z) in a sentence: Hint:

11. Write a program that counts the numbers of the given consonants (B, b, W, W, X, x, Z, z) in a sentence: Hint: Use getchar() to read the characters you enter and count the number of the consonants while the character ' ' (the end of sentence) is not entered. Example: Enter a sentence: Be well prepared for the exam. Your sentence contains 3 of the given consonants.
Step by Step Solution
There are 3 Steps involved in it
include int main char ch int consonantcount 0 printfEnter ... View full answer
Get step-by-step solutions from verified subject matter experts
