Skip to content
CampusEduX

Count Vowels and Consonants

Easyjavapythonccppjavascript

Given a string containing English letters and spaces, count the number of vowels and the number of consonants. Vowels are a e i o u in either case; every other English letter is a consonant. Spaces and other characters are ignored.

Input Format

A single line containing the string S.

Output Format

Print two lines: Vowels = X Consonants = Y

Related Problems

  • Reverse a String
    Easy · java, python, c, cpp, javascript
    Solve Problem
  • Check Palindrome
    Easy · java, python, c, cpp, javascript
    Solve Problem
  • Character Frequency
    Easy · java, python, c, cpp, javascript
    Solve Problem

Input (stdin)

Output

Run your code to see output here...