Computer Science, asked by sagenjisu, 3 months ago

Write a program to find the number of vowels in a given line of text. ​

Answers

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