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 39%
+28
NotAMojangDev
two-bad
danielgjackson
c
silasporth
Jisu
rsauget
SephQ
maximec-indy
jseed
#2
35 c.
Top 55%
+6
Eliott
CGjupoulton
davyboyh
Ryan
Shanethegamer
lucas
CorentinTh
Roy-Ermers
cers
oskar
#3
36 c.
Top 63%
scpchicken
marc-indy
Scott
Seboran
deanacus
LeoMartinDev
Thomas
georg87
#4
37 c.
Top 64%
olivernybo
#5
38 c.
Top 76%
+1
dmarkenstein
coldcoffeee
rucin93
chalda-pnuzig
TooBusyForYou
vaibhavbshete
mahshidghaffari
mathis
alexisab
CaporalDead
#6
39 c.
Top 79%
snoozingnewt
Maxenceboo
Lucas5825343024
#7
40 c.
Top 80%
yoyozbi
#8
43 c.
Top 81%
KrausRaus
#9
45 c.
Top 82%
randolchance
#10
47 c.
Top 84%
Jason
Mif712
#11
50 c.
Top 86%
ComputerKWasTaken
Europe2048
#12
51 c.
Top 87%
emma
#13
53 c.
Top 88%
goodwyna21
#14
55 c.
Top 90%
Vincent
Pascal
#15
56 c.
Top 92%
Loshido
thaispalmer
#16
60 c.
Top 93%
cedric25
#17
69 c.
Top 94%
cabz0r
#18
70 c.
Top 95%
Benio
#19
83 c.
Top 96%
endevo-mschulz
#20
91 c.
Top 97%
User-1946509497
#21
179 c.
Top 98%
Sidd5arth
#22
197 c.
Top 99%
Bootsmash
#23
357 c.
Top 100%
Lins