Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<string.h>
- int main()
- {
- char input[100], output[100];
- int length,x=0;
- printf("Enter a sentence : ");
- gets(input);
- length = strlen(input);
- for(int i=0; i<length; i++)
- {
- if(input[i]=='a'||input[i]=='e' ||input[i]=='i' ||input[i]=='o' ||input[i]=='u' ||input[i]=='A' ||input[i]=='E' ||input[i]=='I' ||input[i]=='O' ||input[i]=='U' )
- continue;
- else
- {
- output[x]=input[i];
- x++;
- }
- }
- printf("Final Result : %s", output);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment