View Code of Problem 55

#include <stdio.h>
#include <string.h>
#include <ctype.h>
int main()
{
    char a[10000],b,c[10000];
    int i,j = 0;
    gets(a);
    b = getchar();
    for(i = 0;i < strlen(a);i++)
        if(a[i] != b)
        c[j++] = a[i];
    c[j] = '\0';
    puts(c);


}

Double click to view unformatted code.


Back to problem 55