Advertisement
Sanlover

smart variant

Nov 8th, 2021
796
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.39 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     string alphabet = "abcdefghijklmnopqrstuvwxyz";
  8.     string str;
  9.     getline(cin, str);
  10.     for (int i = 0; i < alphabet.size(); i++)
  11.     {
  12.         if (str.find(alphabet[i]) == string::npos && str.find(toupper(alphabet[i])) == string::npos)
  13.         {
  14.             cout << alphabet[i];
  15.         }
  16.     }
  17. return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement