#include<stdio.h> #include<string.h> int main() { char a[1000]; while(gets(a)!=NULL) { for(int i=0;i<strlen(a);i++) { if(a[i]=='y'&&a[i+1]=='o'&&a[i+2]=='u') { printf("we"); i=i+2; } else printf("%c",a[i]); } printf("\n"); } } |
Double click to view unformatted code.