wap to read a string from user and display number of vowels in a given string in java
Answers
Answered by
5
Answer:
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.
Explanation:
l hope it helps you please mark me as brainlist and follow
Answered by
0
Answer:
gifufidtftyf tygicjvhg fugyckclghhigfuuzhgh
Similar questions