Problem · String
Remove Vowels from a String
Learn this problemProblem statement
The vowels of the English alphabet are (a, e, i, o, u, A, E, I, O, U). Write an algorithm to eliminate all vowels from a given string.
Input
The first line consists of a string.
Print a string that excludes all the vowels of the given input string.
Note
The vowels of the English alphabet are (a, e, i, o, u, A, E, I, O, U).
The input string contains English letters only.
Function
removeVowel(engStr: String) → StringExamples
Example 1
engStr = "haveaniceday"return = "hvncdy"The output string is “hvncdy”.
Constraints
0 ≤ len ≤ 100; wherelenis length of the input string.