View Code of Problem 55

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

Double click to view unformatted code.


Back to problem 55