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 36%
+12
Jisu
danielgjackson
justinsullard
two-bad
voytxt
fuzzylojik-golf
tree
SXW172P_thdgit
Irratix
Omer
#2
35 c.
Top 59%
+4
davyboyh
Ryan
Shanethegamer
oskar
cers
CorentinTh
CGjupoulton
Eliott
Milihhard
lucas
#3
36 c.
Top 69%
Seboran
Scott
LeoMartinDev
marc-indy
scpchicken
Thomas
#4
37 c.
Top 70%
olivernybo
#5
38 c.
Top 80%
chalda-pnuzig
alexisab
TooBusyForYou
coldcoffeee
rucin93
mathis
#6
39 c.
Top 84%
Maxenceboo
snoozingnewt
#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 93%
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