View Code of Problem 55

#include<iostream>
#include<malloc.h>
#include<algorithm>
#include<cstring>
using namespace std;

int main()
{
    char s[100];
    gets(s);
    char ch;
    cin>>ch;
    for(int i=0; s[i]!='\0'; i++)
    {
        if(s[i]==ch);
        else
            cout<<s[i];
    }

    return 0;
}

Double click to view unformatted code.


Back to problem 55