Question
Write a C program to de-vowel an input string. Assume that the user provides input containing only the characters a through z (i.e., all lowercase
Write a C program to de-vowel an input string. Assume that the user provides input containing only the characters a through z (i.e., all lowercase letters). Your program should create an output string that deletes all vowels from the input string, pushing the letters together to ll any gaps. For example, given the input theturtleandthehare your code should print out thtrtlndthhr. Your program should create an output string from the input string, before printing its output.
Sample Input: Enter a string: theturtleandthehare
Sample Output: De-vowel string is: thtrtlndthhr
Your program should use the following lines of code:
char input[80], output[80];
printf("Enter a string: ");
scanf("%s" , input);
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started