Home
Topics
Practice
Roadmap
DSA Tracker
Code Editor
Tech Blogs
More
Sign in
Get started
Loading question...
Feedback
Count Vowels in a String
Medium
00:00
0 users online
Share
Description
Solution
Submissions
Discussion
Write a function that counts the number of vowels in a string.
Sample Input:
"hello world"
Sample Output:
3
Hints
Hint 1
Define a string containing all vowels
Hint 2
Loop through each character in the input string
Hint 3
Check if each character is a vowel and count it
Code Editor
Reset
Run
Save
Loading...