View Code of Problem 55

#include<stdio.h>
#include<string.h>
int main()
{
    char s[90],a[80],c;
    int i,j=0;
    gets(s);
    c=getchar();
    for(i=0;s[i]!='\0';i++)
    {
        if(s[i]==c)
            continue;
        a[j++]=s[i];
    }
    puts(a);
    return 0;
}

Double click to view unformatted code.


Back to problem 55