IcannotprintthewordwithoutthecharacterandIhavenoideahowtoexecutetheending.ifanyonecanhelp
followwhatI'vealreadydone:
#include<stdio.h>#include<string.h>intmain(){charfrase[20],nova[20];charcaracter[1];intx,y;printf("Informe a frase: ") ;
fgets(frase, sizeof(frase), stdin);
printf("Informe o Caracter: ");
gets(caracter);
for(x=0;x<=strlen(frase);x++)
if(frase[x]!=caracter)
nova[y++]=frase[x];
printf("Frase remontada sem o caracter: %s", nova);
return 0;
}