View Code of Problem 55

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

Double click to view unformatted code.


Back to problem 55