#C11422. Remove Vowels from Strings
Remove Vowels from Strings
Remove Vowels from Strings
Given a string S, remove all the vowels from the string. Vowels are defined as a, e, i, o, u and their uppercase variants. Formally, let \(V = \{a, e, i, o, u, A, E, I, O, U\}\). For each character in the input string, if it is not in \(V\), include it in the output.
You are given multiple test cases. The first line of input contains an integer \(T\) representing the number of test cases. Each of the following \(T\) lines contains a string \(S\). For each test case, output the string after removing all vowels on a separate line.
inputFormat
The input is given as follows:
- The first line contains an integer \(T\) denoting the number of test cases.
- Each of the following \(T\) lines contains a non-empty string \(S\).
outputFormat
For each test case, output a single line containing the string with all vowels removed.
## sample4
Hello
Programming
aeiou
AEIOU
Hll
Prgrmmng
</p>