#include #include int main(void) { char a[101]; char read[8]; char goal[8] = "treeone"; char *input = "forest"; char *p; scanf("%s", a); for (int i = 0; i < 100; i++) { p = strstr(a, goal); do { *(p++) = *(input); } while(*(input++) != '\0'); *(p + 7) = '\0'; } return 0; }