A program that determines how many consonants are in an entered string of 50 characters.

Write a program that determines how many consonants are in an entered string of
50 characters or less. Output the entered string and the number of consonants in the string.




I am trying to write this program but to no avail.
- I would suggest that you go through each character in the string and check if it's a consonant and keep a counter for how many consonants you come across.
Topic archived. No new replies allowed.