View Code of Problem 84

#include<bits/stdc++.h>
using namespace std;
int main(){
	string s,tmp;
	while(getline(cin,s)){
		tmp = s;
		transform(s.begin(),s.end(),s.begin(),::tolower);
		if(s.find("salt") + 1)
			cout<<tmp<<endl;
	}
	return 0;
}

Double click to view unformatted code.


Back to problem 84