challenges

Some problem solving programming challenges, i have solved. Not all are here, but started adding them slowly.

This project is maintained by chankruze

Vowel Counter

You are in an English class, your teacher tells the class that vowels are the glue that hold words and sentences together.

They want to make sure you understand the importance of vowels in a sentence. You are given example sentences and are to give a total amount of vowels that are in each sentence.

Task

Write a program that takes in a string as input, counts and outputs the number of vowels (A, E, I, O, U).

Input Format

A string (letters can be both uppercase or lower case).

Output Format

A number which represents the total number of vowels in the string.

Sample Input

this is a sentence

Sample Output

6

Explanation

There are 6 vowels in the sentence: this is a sentence.

Solutions

Language Solution
C not available
CPP not available
C# not available
Python available
Java not available
Ruby not available
Swift not available