View Code of Problem 55

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

Double click to view unformatted code.


Back to problem 55