View Code of Problem 55

#include<stdio.h>
#include<string.h>
void main()
{
    char str[100], str2[100], c;
    int i=0, j=0;
    gets(str);
    scanf("%c", &c);
    while(str[i]!='\0')
    {
        if(str[i]!=c)
        {
            str2[j++] = str[i];

        }
        i++;
    }
    puts(str2);
}

Double click to view unformatted code.


Back to problem 55