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%
+15
dreimert
SXW172P_thdgit
Natanaelel
maximec-indy
voytxt
sisyphus-ppcg
Omer
justinsullard
AlephSquirrel
tree
#2
35 c.
Top 56%
+5
lucas
CorentinTh
Rusty
val
cers
Eliott
Shanethegamer
davyboyh
josex2r
CGjupoulton
#3
36 c.
Top 65%
marc-indy
LeoMartinDev
Scott
Seboran
scpchicken
Thomas
Salutations45
#4
37 c.
Top 67%
olivernybo
#5
38 c.
Top 78%
dmarkenstein
chalda-pnuzig
SephQ
mathis
coldcoffeee
rucin93
TooBusyForYou
alexisab
#6
39 c.
Top 81%
Maxenceboo
snoozingnewt
#7
40 c.
Top 82%
yoyozbi
#8
43 c.
Top 83%
KrausRaus
#9
45 c.
Top 85%
randolchance
#10
50 c.
Top 86%
ComputerKWasTaken
#11
51 c.
Top 88%
emma
#12
53 c.
Top 89%
goodwyna21
#13
55 c.
Top 92%
Vincent
Pascal
#14
60 c.
Top 93%
cedric25
#15
69 c.
Top 94%
cabz0r
#16
70 c.
Top 96%
Benio
#17
83 c.
Top 97%
endevo-mschulz
#18
91 c.
Top 99%
User-1946509497
#19
357 c.
Top 100%
Lins