Algorithm to find the number of vowels in a string
Answers
Answered by
0
Answer:
Algorithm
Define a string.
Convert the string to lower case so that comparisons can be reduced. ...
If any character in string matches with vowels (a, e, i, o, u ) then increment the vcount by 1.
If any character lies between 'a' and 'z' except vowels, then increment the count for ccount by 1.
Print both the counts
Similar questions
Environmental Sciences,
2 months ago
English,
4 months ago
Math,
11 months ago
English,
11 months ago