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:
1.6m questions
2.0m answers