Write a program to find the number of vowels in a given line of text.
Answers
Answered by
1
To count the number of vowels in a given sentence:
Read a sentence from the user.
Create a variable (count) initialize it with 0;
Compare each character in the sentence with the characters {'a', 'e', 'i', 'o', 'u' }
If a match occurs increment the count.
Finally print count.
Similar questions
Hindi,
2 months ago
Political Science,
5 months ago
Math,
5 months ago
English,
11 months ago
Geography,
11 months ago