View Code of Problem 84

#include<iostream>
#include<bits/stdc++.h>
#include<string.h>
using namespace std;


int main(){
	
	string s;
	while(getline(cin,s)){
		string ss=s;
		transform(ss.begin(),ss.end(),ss.begin(),::toupper);
		if(ss.find("SALT")!=-1){
			cout<<s<<endl;
		}
	}
	
	return 0;
		
}

Double click to view unformatted code.


Back to problem 84