asked 49.2k views
2 votes
write a c program that read a string of characters entered from the keyboard, and then the program will count and list all digits, vowels, and consonants found in the string. to display vowels and consonants, keep case sensitivity the same as what they entered.

asked
User Mero
by
8.7k points

1 Answer

3 votes

Answer:Here, the string entered by the user is stored in the line variable.

Initially, the variables vowel, consonant, digit, and space are initialized to 0.

Then, a for loop is used to iterate over the characters.

Step-by-step explanation:

answered
User AlbertEngelB
by
8.0k points