View Code of Problem 55

#include<stdio.h>
#include<string.h>
int main (void)
{
    int i,n;
    char str[100];
    char a;
    scanf("%s\n%c",str,&a);
    n=strlen(str);
    for(i=0;i<n;i++)
    {
        if(str[i]==a)
            continue;
        else
            printf("%c",str[i]);
    }
    printf("\n");
}

Double click to view unformatted code.


Back to problem 55