#include <stdio.h>
int main(void) {
char str1[15], str2[15], output[15];
int i, j, k, size_str1, size_str2;
printf("Digite uma palavra de ate 10 letras: ");
printf("\nDigite outra palavra de ate 10 letras: ");
for(i=0; i<size_str1; i++){
for(j=0; j<size_str2; j++){
if(str1[i] == str2[j]){
for(k=i; k<size_str1; k++) {
str1[k] = str1[k+1];
}
size_str1--;
i--;
}
}
}
printf("\nResultado: %s", str1
); return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbih2b2lkKSB7CgljaGFyIHN0cjFbMTVdLCBzdHIyWzE1XSwgb3V0cHV0WzE1XTsKCWludCBpLCBqLCBrLCBzaXplX3N0cjEsIHNpemVfc3RyMjsKCQoJcHJpbnRmKCJEaWdpdGUgdW1hIHBhbGF2cmEgZGUgYXRlIDEwIGxldHJhczogIik7CglmZ2V0cyhzdHIxLCAxNSwgc3RkaW4pOwoJcHJpbnRmKCInJXMnIiwgc3RyMSk7CgkKCXByaW50ZigiXG5EaWdpdGUgb3V0cmEgcGFsYXZyYSBkZSBhdGUgMTAgbGV0cmFzOiAiKTsKCWZnZXRzKHN0cjIsIDE1LCBzdGRpbik7CglwcmludGYoIiclcyciLCBzdHIyKTsKCQoJc2l6ZV9zdHIxID0gc3RybGVuKHN0cjEpOwoJc2l6ZV9zdHIyID0gc3RybGVuKHN0cjIpOwoJZm9yKGk9MDsgaTxzaXplX3N0cjE7IGkrKyl7CgkgICAgZm9yKGo9MDsgajxzaXplX3N0cjI7IGorKyl7CgkgICAgICAgIGlmKHN0cjFbaV0gPT0gc3RyMltqXSl7CiAgICAgICAgICAgIAlmb3Ioaz1pOyBrPHNpemVfc3RyMTsgaysrKSB7CgkJCQkJc3RyMVtrXSA9IHN0cjFbaysxXTsKICAgICAgICAgICAgCX0KCQkJCXNpemVfc3RyMS0tOwoJCQkJaS0tOwoJICAgICAgICB9CgkgICAgfQoJfQoJcHJpbnRmKCJcblJlc3VsdGFkbzogJXMiLCBzdHIxKTsKICAgIHJldHVybiAwOwp9