Krunch
Time limit1sMemory limit1024 MB
Given one sentence, remove all vowels from every word and print the sentence, dropping words that become empty.
- Level
Easy1 of 10
- Topics
- String, Implementation
- Solved
- No attempts yet
Problem
You can "krunch" a word by removing all of its vowels ("a", "e", "i", "o", and "u") in both upper and lower case. For example, "Mississippi" krunches to "Msssspp", and "Alabama" krunches to "lbm".
Write a program that reads a sentence (with both upper and lower case letters), krunches every word, and prints the resulting sentence. If a word is completely eliminated, remove the extra blanks that separate it from the other words (or from the start or end of the sentence) so that the sentence looks right. No test data has a vowel followed by punctuation.
Input
A single line containing a sentence to krunch. The line is no longer than 72 characters.
Output
A single line containing the resulting sentence.