View Code of Problem 55

#include<iostream>
#include<string>
using namespace std;
int main(){
	string str;
	char c;
	getline(cin,str);
	scanf("%c",&c);
	for(int i=0;i<str.length();i++){
		if(str[i]!=c)	printf("%c",str[i]);
	}
	return 0;
} 

Double click to view unformatted code.


Back to problem 55