Can I have complete running program details , in the Email subject Header. of yo
ID: 3553060 • Letter: C
Question
Can I have complete running program
details , in the Email subject Header. of your output Make sure to attach your source code and screen capture Questions Exercise 1 example. countChar ( "XaaaYaaaZaaaYaaaaY", 'Y' ) returns 3. Exercise 2 Write a method that creates a string that is similar to the argument string but with all the vowels removed. Regard a, e, i, o, u (upper and lower case) as vowels. For example, remove Vowels ( "counterrevolutionaries" ) returns "cntrrvltnrs". remove Vowels( "AUDIOBOOK ) returns "DBK"Explanation / Answer
2)#include<stdio.h>
int main(){
char str[20],s[20];
int i,j=0;
printf("Enter any string->");
scanf("%s",str);
printf("The string is->%s",str);
for(i=0;i<=strlen(str);i++) {
if(str[i]=='a'||str[i]=='e'||str[i]=='i'||str[i]=='o'||str[i]=='u')
str[i]=' ';
else
s[j++]=str[i];
}
s[j]='';
printf(" The string without vowel is->%s",s);
return 0;
}
Also for the vowel in upper case:
#include<stdio.h>
#include<string.h>
int main(){
char str[20],s[20];
int i,j=0;
printf("Enter any string->");
scanf("%s",str);
printf("The string is->%s",str);
for(i=0;i<=strlen(str);i++) {
if(str[i]=='a'||str[i]=='e'||str[i]=='i'||str[i]=='o'||str[i]=='u' ||str[i]=='A'||str[i]=='E'||str[i]=='I'||str[i]=='O'||str[i]=='U')
str[i]=' ';
else
s[j++]=str[i];
}
s[j]='';
printf(" The string without vowel is->%s",s);
return 0;
}
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.