View Code of Problem 84

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

Double click to view unformatted code.


Back to problem 84