How to solve/finish this string exercise?

Asked

Viewed 19 times

0

print do enunciado da questão

Code I’ve made so far:

int main()
{
    char string[100], c;
    int removidas;
    
    fgets(string,100,stdin);
    
    scanf("%c", &c);

    removidas = funcao(string, c);
    
    printf("Numero de remocoes: %d\n", removidas);
    printf("String sem o caractere '%c': %s", c, string);

    
    return 0;
}

Thanks to those who help!!

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.