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%
+14
Jisu
Steffan
danielgjackson
justinsullard
Omer
two-bad
SXW172P_thdgit
rsauget
AlephSquirrel
voytxt
#2
35 c.
Top 55%
+4
lucas
Eliott
Thomasdcrt
cers
CorentinTh
CGjupoulton
Milihhard
val
davyboyh
Shanethegamer
#3
36 c.
Top 65%
scpchicken
marc-indy
Salutations45
Seboran
LeoMartinDev
Thomas
Scott
#4
37 c.
Top 68%
olivernybo
madeforlosers
#5
38 c.
Top 78%
rucin93
chalda-pnuzig
alexisab
dmarkenstein
coldcoffeee
TooBusyForYou
mathis
#6
39 c.
Top 81%
Maxenceboo
snoozingnewt
#7
43 c.
Top 83%
KrausRaus
#8
45 c.
Top 84%
randolchance
#9
50 c.
Top 86%
ComputerKWasTaken
#10
51 c.
Top 87%
emma
#11
53 c.
Top 88%
goodwyna21
#12
55 c.
Top 91%
Pascal
Vincent
#13
60 c.
Top 93%
cedric25
#14
69 c.
Top 94%
cabz0r
#15
70 c.
Top 96%
Benio
#16
83 c.
Top 97%
endevo-mschulz
#17
91 c.
Top 99%
User-1946509497
#18
357 c.
Top 100%
Lins