Back
Close

How many vowels?

Statement

 Goal

You must output the number of vowels in a string.
Y and y are not vowels!
Input
A single line: A string str.
Output
An integer: The number of vowels in the string.
Constraints
0 < string length <= 100
Example
Input
Hello World!
Output
3

Game modes
ShortestReverse

Test cases
Test 1 Test
Input
Hello World!
Output
3

Validator 1 Validator
Input
Hello World!!
Output
3

Test 2 Test
Input
You're on the right track! Keep going.
Output
11

Validator 2 Validator
Input
You're on the right track! Keep gOing.... Are yoU ?
Output
15

Test 3 Test
Input
This Is the 3rd tEst.
Output
4

Validator 3 Validator
Input
ThIs is the 3rd testtt; Yes indEed !
Output
8

Test 4 Test
Input
I'm sure you will figure it out.
Output
12

Validator 4 Validator
Input
I'm sure you will figure it outqw.
Output
12

Solution language

Solution

Stub generator input
codingame x discord
Join the CodinGame community on Discord to chat about puzzle contributions, challenges, streams, blog articles - all that good stuff!
JOIN US ON DISCORD
Online Participants