Count Vowels In A String

Count the number of vowels in a given string.

Easy12/15/2023

Problem statement

Write a program that takes a string and returns the count of vowels (a, e, i, o, u, y) in the string. The string will contain only lowercase letters and no spaces.

Problem leaderboard

#
Size
%
Users
#1
33 c.
Top 35%
+12
voytxt
SXW172P_thdgit
garamnyang
500error
dreimert
JoKing
sean
Jisu
justinsullard
sisyphus-ppcg
#2
35 c.
Top 58%
+4
Eliott
Milihhard
Ryan
Shanethegamer
Rusty
Tony
oskar
val
lucas
cers
#3
36 c.
Top 68%
Scott
Thomas
marc-indy
scpchicken
Seboran
LeoMartinDev
#4
37 c.
Top 71%
madeforlosers
olivernybo
#5
38 c.
Top 81%
alexisab
rucin93
TooBusyForYou
coldcoffeee
chalda-pnuzig
mathis
#6
39 c.
Top 84%
snoozingnewt
Maxenceboo
#7
43 c.
Top 85%
KrausRaus
#8
45 c.
Top 87%
randolchance
#9
50 c.
Top 89%
ComputerKWasTaken
#10
51 c.
Top 90%
emma
#11
55 c.
Top 92%
Pascal
#12
60 c.
Top 94%
cedric25
#13
69 c.
Top 95%
cabz0r
#14
70 c.
Top 97%
Benio
#15
91 c.
Top 98%
User-1946509497
#16
357 c.
Top 100%
Lins