Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main(){
- FILE *f=fopen("uberspeedtest.in","r");
- char ch,vowels[100000];
- unsigned n_vowels=0,i;
- while(fscanf(f,"%c",&ch)!=EOF){
- if(ch==' ') continue;
- else if(ch=='e' || ch=='a' || ch=='o' || ch=='i' || ch=='u') vowels[n_vowels++]=ch;
- else printf("%c",ch);
- }
- vowels[n_vowels]='\0';
- printf("%s",vowels);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement