Computer Science, asked by Anonymous, 5 months ago

write a program in java to input a sentence and print number of vowels in each word
help plzz​

Answers

Answered by kaurmanjot7753
3

Explanation:

Java program 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.

Answered by bhankare2008
1

Answer:

Yes am i

rasika_hankar21 this one is my id

Similar questions