You are on page 1of 1

#include<iostream.h> #include<string.h> int main() { char s[20],vocale[]="aeiouAEIOU"; int gasit=1; cin>>s; int i; while(gasit) for(i=0;i<strlen(s);i++) { gasit=0; if (strchr(vocale,s[i])!

=0) {strcpy(s+i,s+i+1); gasit=1;} } cout<<s; }

You might also like