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%
+8
two-bad
lydxn
danielgjackson
rsauget
Jisu
tree
sean
garamnyang
fuzzylojik-golf
Steffan
#2
35 c.
Top 60%
+4
Rusty
CGjupoulton
davyboyh
Shanethegamer
CorentinTh
Eliott
lucas
cers
Tony
Milihhard
#3
36 c.
Top 72%
LeoMartinDev
marc-indy
Seboran
Thomas
Scott
scpchicken
#4
37 c.
Top 74%
olivernybo
#5
38 c.
Top 85%
TooBusyForYou
rucin93
alexisab
mathis
coldcoffeee
chalda-pnuzig
#6
39 c.
Top 87%
Maxenceboo
#7
43 c.
Top 89%
KrausRaus
#8
45 c.
Top 91%
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