Remove vowels in place MEDIUM Subprograme (BAC) 25 XP 0 solved
Mobile coding works. A laptop is faster for long sessions.

Problem

Write the definition of a subprogram `elimVocale` that receives through parameter `s` a null-terminated character string of at most `200` characters and **modifies it in place**, removing all vowels from it. The vowels are the letters `a`, `e`, `i`, `o`, `u`, both uppercase and lowercase. All other characters (consonants, digits, spaces, punctuation marks) remain in place, in the same order. Then write a main program that reads from standard input a single line of text (with at most `200` characters, possibly containing spaces), calls the subprogram `elimVocale` on this string, and prints to standard output the resulting string followed by a newline.

Input format

Input input.txt

The program reads from standard input a single line with at most `200` characters. - the input string has at most `200` characters - the subprogram `elimVocale` must be defined explicitly and must modify **the same array** it receives - vowels are `a, e, i, o, u`, both lowercase and uppercase

Output format

Output output.txt

The program prints to standard output the string obtained by removing all vowels from the input string, followed by a newline. If the resulting string is empty, the program prints only the newline.

Example

input
Bacalaureat informatica
output
Bclrt nfrmtc

Ready to solve this challenge?

Create a free account to write code, submit solutions, and track your progress.

⌨️ Keyboard Shortcuts

Code Editor
Run Code
Ctrl Enter
Submit Code
Ctrl Shift Enter
Format Code
Shift Alt F
Toggle Comment
Ctrl /
Undo
Ctrl Z
Redo
Ctrl Y
Navigation
Global Search
/
Show Shortcuts
?
Close Modal
Esc

🔍 Interactive Debugger

0 / 0

Analyzing your code...

📦 Variables

No variables yet

📚 Call Stack
main() line 1
📤 Output
We use cookies

Essential cookies are always active. You can choose to enable preference and analytics cookies. Learn more