View Code of Problem 3496

    #include <stdio.h>
    #include <string.h>
    int main(){
      char s[1000];
      while(gets(s)!=null){
        int len =strlen(s);
        for(int i=0;i<len;i++){
          if(s[i]=='y'&&s[i+1]=='o'&&s[i+2]=='u'){
            printf("we");
            i=i+2;
          }else{
            printf("%c",s[i]);
          }
        }
        printf("\n");
      }
    }
/*
F:\temp\22444916.119407\Main.c: In function 'main':
F:\temp\22444916.119407\Main.c:6: error: 'null' undeclared (first use in this function)
F:\temp\22444916.119407\Main.c:6: error: (Each undeclared identifier is reported only once
F:\temp\22444916.119407\Main.c:6: error: for each function it appears in.)
*/

Double click to view unformatted code.


Back to problem 3496