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 34%
+7
JoKing
maximec-indy
sean
sisyphus-ppcg
Jisu
voytxt
fuzzylojik-golf
tree
Irratix
danielgjackson
#2
35 c.
Top 60%
+3
davyboyh
Ryan
Shanethegamer
oskar
lucas
cers
CorentinTh
CGjupoulton
Milihhard
Tony
#3
36 c.
Top 70%
scpchicken
LeoMartinDev
Thomas
marc-indy
Seboran
#4
37 c.
Top 72%
olivernybo
#5
38 c.
Top 84%
alexisab
chalda-pnuzig
mathis
TooBusyForYou
coldcoffeee
rucin93
#6
39 c.
Top 86%
Maxenceboo
#7
43 c.
Top 88%
KrausRaus
#8
45 c.
Top 90%
randolchance
#9
50 c.
Top 92%
ComputerKWasTaken
#10
51 c.
Top 94%
emma
#11
55 c.
Top 96%
Pascal
#12
69 c.
Top 98%
cabz0r
#13
70 c.
Top 100%
Benio