1.

Write a program to calculate vowels in a string in java​

Answer»

ogram to count the number of vowels in a GIVEN sentence1.Read a sentence from the user.2.Create a variable (count) initialize it with 0;3.Compare each CHARACTER in the sentence with the CHARACTERS {'a', 'e', 'i', 'o', 'u' }4.If a match occurs increment the count.5.Finally PRINT count.



Discussion

No Comment Found