View Code of Problem 55

#include<stdio.h>
#include <string.h>
int main ()
{
    char a,b,c,i,j;
    int n;
    char str[100];
    scanf("%s\n%c",&str,&a);
    n=strlen(str);
    for(int 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