Computer Science, asked by shantibhengra1977, 20 days ago

write a program to input a string and count the numbers of vowels and print it.​

Answers

Answered by pranjal0893514
0

Answer:

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.

Explanation:

please mark me as brainlist

Answered by jungkook74
0

answer: C program to count number of vowels in a string: for example,in the string " love" there are two vowels 'o' and 'e'.in the program both lower and upper case are considered i.e.,'a', 'A', 'e', 'E', 'i', 'I', 'o', 'O', 'u' and 'U'. in this program we check every character in the input string. if it's a oval than counter is incremented by one, consonants and special characters are ignored

Similar questions