Search for a command to run...
You are given a string s consisting of uppercase and lowercase English letters.
Your task is to count the total number of vowels present in the string.
Vowels include:
a, e, i, o, u
Both lowercase and uppercase vowels should be considered.
Your solution should efficiently iterate through the string and count all vowel occurrences.
A single string s
Print a single integer representing the total number of vowels in the string.
HelloWorld3The vowels in the string are:
e, o, oSo, the total number of vowels is 3.
1 ≤ |s| ≤ 10^5
Example 1
Hello2Example 2
Prepverse is awesome8Hello
2