Computer Science, asked by yasharsh879, 4 months ago

Algorithm to find the number of vowels in a string

Answers

Answered by ajitatopno
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