View Code of Problem 55

#include <bits/stdc++.h>
using namespace std;
int main(){
	string s;
	char ch;
	getline(cin,s);
	getchar();
	cin>>ch;
	for(int i=0;i<s.size();i++){
		if(s[i]==ch) continue;
		cout<<s[i];
	}		
} 

Double click to view unformatted code.


Back to problem 55