View Code of Problem 84

#include<bits/stdc++.h>

using namespace std;

int main()
{
    string str;

    while (getline(cin,str)){
            string str1 = str;
//      transform(str.begin(),str.end(),str1.begin(),::tolower);
  //      cout<<str;
    for(int i = 0; i < str.size(); ++i){
        str1[i] = tolower(str[i]);
      }
      if(str1.find("salt"))
        cout<< str <<endl;
    }

}

Double click to view unformatted code.


Back to problem 84