Example 77: Delete Vowels

Learn how to delete vowels from a string.

Problem

Write a function that takes in a string as input and deletes all vowels from it. It should print the final sentence on the console.

Example

Input Output
A sentence cannot start with because.  sntnc cnnt strt wth bcs.
Welcome to Educative Wlcm t dctv

Try it yourself

Try to solve this question on your own in the code widget below. If you get stuck, you can always refer to the solution provided.

Level up your interview prep. Join Educative to access 70+ hands-on prep courses.