View Code of Problem 3496

#include <stdio.h>
#include<string.h>
int main(int argc, char *argv[])
{
	char a[1000];
	while(gets(a)!=NULL){  
		int len=strlen(a);
		int i;
		for(i=0;i<len;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");
	}
	
	return 0;
}

Double click to view unformatted code.


Back to problem 3496