View Code of Problem 3496

#include<stdio.h>
int main()
{
	char str[1000];
  	while(gets(str)!=NULL)
        {
        	for(int i=0;str[i]!='\0';i++)
                {
                	if(str[i]=='y'&&str[i]=='o'&&str[i]=='u')
                        {
                        	printf("we");
                          	i=i+2;
                        }
                  	else
                        {
                        	printf("%c",str[i]);
                        }
                }
          	printf("\n");
        }
	return 0;
}

Double click to view unformatted code.


Back to problem 3496