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

 

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

1 Expert Approved Answer
Step: 1 Unlock

include int main char ch int consonantcount 0 printfEnter ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!