#include <stdio.h>
#define MAX 100

void imprimi_frase(char c, char frase[]){
    for(int i = 0; frase[i] != '\0'; i++ ){
        if(frase[i] != c){
            printf("%c", frase[i]);
        } else {
            break;
        } 
    }
}

int main() {
    char c, frase[MAX];
	fgets(frase, MAX, stdin);

    scanf("%c ", &c);
	
	imprimi_frase(c, frase);
    return 0;
}

//

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: